瀏覽代碼

[cmake] set some policies

Andrey Filipenkov 10 月之前
父節點
當前提交
4e4684cedf
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      CMakeLists.txt

+ 7 - 0
CMakeLists.txt

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