Skip to content

Commit

Permalink
[cmake] fix deprecated OLD policy CMP0048 (#7193)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 7, 2018
1 parent 2e5e20e commit 42c0b39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Expand Up @@ -3,11 +3,10 @@ SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
SET(RELEASE_NAME "Master")
IF (POLICY CMP0048) # in CMake 3.0.0+
CMAKE_POLICY (SET CMP0048 OLD) # keep PROJECT() from clearing VERSION variables
IF (POLICY CMP0048)
CMAKE_POLICY (SET CMP0048 NEW)
ENDIF (POLICY CMP0048)
SET(PROJECT_VERSION ${COMPLETE_VERSION})
PROJECT(qgis${PROJECT_VERSION})
PROJECT(qgis VERSION ${COMPLETE_VERSION})
IF (APPLE)
SET(QGIS_APP_NAME "QGIS")
ELSE (APPLE)
Expand Down

0 comments on commit 42c0b39

Please sign in to comment.