We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3cf010 commit c4d5dfdCopy full SHA for c4d5dfd
CMakeLists.txt
@@ -16,6 +16,12 @@ endif()
16
17
# CMake policies ##############################################################
18
#
19
+# Setting a cmake_policy to OLD is deprecated by definition and will raise a
20
+# verbose warning
21
+if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
22
+ set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "" FORCE)
23
+endif()
24
+
25
# CMake 3.18+: CMAKE_CUDA_ARCHITECTURES
26
# https://cmake.org/cmake/help/latest/policy/CMP0104.html
27
if(POLICY CMP0104)
0 commit comments