diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f8c8dd57401..9aee09fa577 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 _ROOT env vars when searching for packages via find_package() cmake_policy(SET CMP0066 NEW) # use CMAKE__FLAGS_ for try_compile() instead of only CMAKE__FLAGS cmake_policy(SET CMP0056 NEW) # use CMAKE_EXE_LINKER_FLAGS in try_compile() in addition to CMAKE__FLAGS