Skip to content

Commit ec1022c

Browse files
committed
build: set policy CMP0146
1 parent 85970c0 commit ec1022c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ if(POLICY CMP0148)
3131
cmake_policy(SET CMP0148 NEW)
3232
endif()
3333

34+
# CMake 3.27: The FindCUDA module is removed.
35+
if(POLICY CMP0146)
36+
cmake_policy(SET CMP0146 OLD)
37+
endif()
38+
3439
if("${CMAKE_BUILD_TYPE}" STREQUAL "")
3540
message(STATUS "CMAKE_BUILD_TYPE is unset, defaulting to Release")
3641
set(CMAKE_BUILD_TYPE "Release" CACHE STRING

0 commit comments

Comments
 (0)