Browse Source

Using NEW behavior for CMP0022 in CMake project

Konstantin Podsvirov 10 years ago
parent
commit
905f464035
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cmake/CMakeLists.txt

+ 3 - 0
cmake/CMakeLists.txt

@@ -4,6 +4,9 @@ cmake_minimum_required(VERSION 2.8)
 # Project
 project(protobuf C CXX)
 
+# CMake policies
+cmake_policy(SET CMP0022 NEW)
+
 # Options
 option(protobuf_VERBOSE "Enable for verbose output" OFF)
 option(BUILD_TESTING "Build tests" ON)