Skip to content

Commit

Permalink
Merge pull request libgit2#4829 from pks-t/pks/cmake-cmp0054
Browse files Browse the repository at this point in the history
cmake: enable new quoted argument policy CMP0054
  • Loading branch information
ethomson authored Oct 4, 2018
2 parents e41a0f7 + 633584b commit b95c79a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down

0 comments on commit b95c79a

Please sign in to comment.