summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Rakhmatullin <wrar@wrar.name>2016-11-20 18:40:49 +0500
committerAndrey Rakhmatullin <wrar@wrar.name>2016-11-20 18:40:49 +0500
commit72bda7188408bd3c2491ea664da294cc483220bc (patch)
treef3bd5153da1d0b372783823a2648c721dafb5521
parentee947dc8ef3f5eac385045278bac15f77d242681 (diff)
downloadlibproxy-git-72bda7188408bd3c2491ea664da294cc483220bc.tar.gz
Set CMP0054 CMake policy to NEW.
CMake 3.7 exports a "t" variable for all projects and because of that the elseif statement in cmake/CMakeCSharpInformation.cmake:311 works incorrectly if CMP0054 is not set to NEW (as "t" is expanded to the variable value).
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5313787..451e7a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.6)
if(POLICY CMP0011)
cmake_policy(SET CMP0011 NEW)
endif(POLICY CMP0011)
+if(POLICY CMP0054)
+ cmake_policy(SET CMP0054 NEW)
+endif(POLICY CMP0054)
# Make sure we look in our cmake folder for additional definitions
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake )