Selaa lähdekoodia

Using NEW behavior for CMP0022 in CMake project

Konstantin Podsvirov 10 vuotta sitten
vanhempi
commit
905f464035
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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)