Skip to content

Commit 3d70953

Browse files
committed
build: Add command to set policy "CMP0147" to "OLD"
1 parent 360d40a commit 3d70953

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ cmake_policy(SET CMP0063 NEW) # visibility
44
if (POLICY CMP0146)
55
cmake_policy(SET CMP0146 OLD) # Keep legacy FindCUDA module behavior on newer CMake.
66
endif()
7+
if (POLICY CMP0147)
8+
cmake_policy(SET CMP0147 OLD) # Required for legacy FindCUDA with Visual Studio generators.
9+
endif()
710
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
811
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
912

0 commit comments

Comments
 (0)