Skip to content

Commit

Permalink
Suppress warning from cmake about FindCUDA
Browse files Browse the repository at this point in the history
Newer versions of cmake have deprecated the
FindCUDA module. Supress the resulting warning
for now since we still want to support old CMake.
  • Loading branch information
benmwebb committed May 11, 2024
1 parent 78018a3 commit 44a73c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -57,6 +57,11 @@ if(POLICY CMP0056)
cmake_policy(SET CMP0056 NEW)
endif(POLICY CMP0056)

# Don't complain about our use of FindCUDA for now
if(POLICY CMP0146)
cmake_policy(SET CMP0146 OLD)
endif(POLICY CMP0146)

include(${CMAKE_SOURCE_DIR}/cmake_modules/IMPExecuteProcess.cmake)
include(${CMAKE_SOURCE_DIR}/cmake_modules/IMPAddTests.cmake)
include(${CMAKE_SOURCE_DIR}/cmake_modules/CheckCompiles.cmake)
Expand Down

0 comments on commit 44a73c0

Please sign in to comment.