浏览代码

Use NEW behaviour for project VERSION variables.

cf https://cmake.org/cmake/help/latest/policy/CMP0048.html#policy:CMP0048
Corentin Le Molgat 7 年之前
父节点
当前提交
1ec9beb477
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      cmake/CMakeLists.txt

+ 4 - 0
cmake/CMakeLists.txt

@@ -8,6 +8,10 @@ endif()
 # CMake policies
 cmake_policy(SET CMP0022 NEW)
 
+if(POLICY CMP0048)
+  cmake_policy(SET CMP0048 NEW)
+endif()
+
 # Project
 project(protobuf C CXX)