summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-10-04 18:35:11 +0100
committerGitHub <noreply@github.com>2018-10-04 18:35:11 +0100
commitb95c79ab34fa782d336984030b619bfd0df5e46f (patch)
tree21847a6c336e8ef97cdb4dd93966b5b18b099a8b
parente41a0f7b5d2d8620f514c3fa4184b60cab4269f7 (diff)
parent633584b52faa6ff06fdd21050a554241a40ded3f (diff)
downloadlibgit2-b95c79ab34fa782d336984030b619bfd0df5e46f.tar.gz
Merge pull request #4829 from pks-t/pks/cmake-cmp0054
cmake: enable new quoted argument policy CMP0054
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3f3e4081..47b1cd187 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,12 +14,15 @@
PROJECT(libgit2 C)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
CMAKE_POLICY(SET CMP0015 NEW)
-IF (POLICY CMP0051)
+IF(POLICY CMP0051)
CMAKE_POLICY(SET CMP0051 NEW)
ENDIF()
-IF (POLICY CMP0042)
+IF(POLICY CMP0042)
CMAKE_POLICY(SET CMP0042 NEW)
ENDIF()
+IF(POLICY CMP0054)
+ CMAKE_POLICY(SET CMP0054 NEW)
+ENDIF()
# Add find modules to the path
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${libgit2_SOURCE_DIR}/cmake/Modules/")