Skip to content
Permalink
Browse files

[cmake] fix deprecated OLD policy CMP0048 (#7193)

  • Loading branch information
3nids committed Jun 7, 2018
1 parent 2e5e20e commit 42c0b39812b1d05ca58e49afd5556a52f146163a
Showing with 3 additions and 4 deletions.
  1. +3 −4 CMakeLists.txt
@@ -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)

0 comments on commit 42c0b39

Please sign in to comment.
You can’t perform that action at this time.