aboutsummaryrefslogtreecommitdiff
path: root/cmake/CMakeLists.txt
diff options
context:
space:
mode:
authorCorentin Le Molgat <corentinl@google.com>2018-01-29 15:31:06 +0100
committerCorentin Le Molgat <corentinl@google.com>2018-02-01 20:31:50 +0100
commit1ec9beb477a2c8c4e77b6e6c9046ea634019644d (patch)
treec5ec767a92d61803cd8ee0bfea2bdd6a9547e20b /cmake/CMakeLists.txt
parent8dd0f4e557b7f3c376841a09a0ab0fdd80672c13 (diff)
downloadprotobuf-1ec9beb477a2c8c4e77b6e6c9046ea634019644d.tar.gz
protobuf-1ec9beb477a2c8c4e77b6e6c9046ea634019644d.tar.bz2
protobuf-1ec9beb477a2c8c4e77b6e6c9046ea634019644d.zip
Use NEW behaviour for project VERSION variables.
cf https://cmake.org/cmake/help/latest/policy/CMP0048.html#policy:CMP0048
Diffstat (limited to 'cmake/CMakeLists.txt')
-rw-r--r--cmake/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 1578fb88..bf3f8863 100644
--- a/cmake/CMakeLists.txt
+++ b/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)