Skip to content

Commit 8d292c1

Browse files
author
timlinux
committed
remove some duplication of version vars in top level cmakelists.txt
git-svn-id: http://svn.osgeo.org/qgis/trunk@8519 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6f6ff9a commit 8d292c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
PROJECT(qgis0.11.0)
21
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
32
SET(CPACK_PACKAGE_VERSION_MINOR "11")
43
SET(CPACK_PACKAGE_VERSION_PATCH "0")
4+
SET(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})^
55
SET(RELEASE_NAME "Metis")
6-
7-
SET(PROJECT_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
8-
6+
SET(PROJECT_VERSION ${COMPLETE_VERSION})
97
PROJECT(qgis${PROJECT_VERSION})
108

119

@@ -14,7 +12,9 @@ PROJECT(qgis${PROJECT_VERSION})
1412
# - nice output when configured
1513
# - rename *.ui files to have the same filename as their implementation
1614
# e.g. instead of blahblahbase.ui use blahblah.ui
17-
# because it's more common in Qt4
15+
# because it's more common in Qt4
16+
# Note on last point above by Tim Sutton - I prefer to have the base suffix
17+
# as it indicates the ui generated class will be a base class for the widget.
1818

1919
#############################################################
2020
# CMake settings
@@ -360,7 +360,7 @@ SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Quantum GIS")
360360
SET(CPACK_PACKAGE_VENDOR "Open Source Geospatial Foundation")
361361
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
362362
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
363-
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Quantum GIS ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
363+
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Quantum GIS ${COMPLETE_VERSION}")
364364
IF(WIN32 AND NOT UNIX)
365365
# There is a bug in NSI that does not handle full unix paths properly. Make
366366
# sure there is at least one set of four (4) backslashes.

0 commit comments

Comments
 (0)