Skip to content

Commit 42c0b39

Browse files
authored
[cmake] fix deprecated OLD policy CMP0048 (#7193)
1 parent 2e5e20e commit 42c0b39

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ SET(CPACK_PACKAGE_VERSION_MINOR "1")
33
SET(CPACK_PACKAGE_VERSION_PATCH "0")
44
SET(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
55
SET(RELEASE_NAME "Master")
6-
IF (POLICY CMP0048) # in CMake 3.0.0+
7-
CMAKE_POLICY (SET CMP0048 OLD) # keep PROJECT() from clearing VERSION variables
6+
IF (POLICY CMP0048)
7+
CMAKE_POLICY (SET CMP0048 NEW)
88
ENDIF (POLICY CMP0048)
9-
SET(PROJECT_VERSION ${COMPLETE_VERSION})
10-
PROJECT(qgis${PROJECT_VERSION})
9+
PROJECT(qgis VERSION ${COMPLETE_VERSION})
1110
IF (APPLE)
1211
SET(QGIS_APP_NAME "QGIS")
1312
ELSE (APPLE)

0 commit comments

Comments
 (0)