From 1ec9beb477a2c8c4e77b6e6c9046ea634019644d Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 29 Jan 2018 15:31:06 +0100 Subject: Use NEW behaviour for project VERSION variables. cf https://cmake.org/cmake/help/latest/policy/CMP0048.html#policy:CMP0048 --- cmake/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake/CMakeLists.txt') 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) -- cgit v1.2.3