Browse Source

[cmake] set some policies

Andrey Filipenkov 9 months ago
parent
commit
4e4684cedf
1 changed files with 7 additions and 0 deletions
  1. 7 0
      CMakeLists.txt

+ 7 - 0
CMakeLists.txt

@@ -25,6 +25,13 @@ if(APPLE)
 	endif()
 	endif()
 endif()
 endif()
 
 
+if(POLICY CMP0142)
+  cmake_policy(SET CMP0142 NEW)
+endif()
+if(POLICY CMP0177)
+  cmake_policy(SET CMP0177 NEW)
+endif()
+
 ############################################
 ############################################
 #        User-provided options             #
 #        User-provided options             #
 ############################################
 ############################################