aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Corentin Le Molgat <corentinl@google.com>2018-01-29 15:31:06 +0100
committerGravatar Corentin Le Molgat <corentinl@google.com>2018-02-01 20:31:50 +0100
commit1ec9beb477a2c8c4e77b6e6c9046ea634019644d (patch)
treec5ec767a92d61803cd8ee0bfea2bdd6a9547e20b /cmake
parent8dd0f4e557b7f3c376841a09a0ab0fdd80672c13 (diff)
Use NEW behaviour for project VERSION variables.
Diffstat (limited to 'cmake')
-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)