Skip to content

Commit

Permalink
chore: increase minimum required cmake version. (#3331)
Browse files Browse the repository at this point in the history
* build: increase minimum required cmake version.

---------

Co-authored-by: Randolph Settgast <settgast1@llnl.gov>
  • Loading branch information
CusiniM and rrsettgast authored Sep 10, 2024
1 parent fec63db commit 98e9ae0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

cmake_minimum_required( VERSION 3.23 )
cmake_minimum_required( VERSION 3.24 )

# At the moment we are manually passing the cuda arch flag.
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.23.0")
cmake_policy(SET CMP0104 OLD) # when using nvcc populate CMAKE_CUDA_ARCHITECTURES, raise error if we can't
endif()
cmake_policy(SET CMP0104 OLD) # when using nvcc populate CMAKE_CUDA_ARCHITECTURES, raise error if we can't
cmake_policy(SET CMP0074 NEW) # dont ignore <PackageName>_ROOT env vars when searching for packages via find_package()
cmake_policy(SET CMP0066 NEW) # use CMAKE_<LANG>_FLAGS_<BUILD_TYPE> for try_compile() instead of only CMAKE_<LANG>_FLAGS
cmake_policy(SET CMP0056 NEW) # use CMAKE_EXE_LINKER_FLAGS in try_compile() in addition to CMAKE_<LANG>_FLAGS
Expand Down

0 comments on commit 98e9ae0

Please sign in to comment.