Skip to content

Commit bed7564

Browse files
committed
Use four-component version number in more locations
1 parent 7948e50 commit bed7564

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ project(Mapper VERSION 0.8.1.2 LANGUAGES CXX C)
3030
if(Mapper_VERSION_DISPLAY)
3131
message(STATUS "Custom version display string: \"${Mapper_VERSION_DISPLAY}\"")
3232
elseif(CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE MATCHES "Release|MinSizeRel|RelWithDebInfo")
33-
set(Mapper_VERSION_DISPLAY "${CMAKE_BUILD_TYPE} ${Mapper_VERSION_MAJOR}.${Mapper_VERSION_MINOR}.${Mapper_VERSION_PATCH}")
33+
set(Mapper_VERSION_DISPLAY "${CMAKE_BUILD_TYPE} ${Mapper_VERSION}")
3434
else()
35-
set(Mapper_VERSION_DISPLAY "${Mapper_VERSION_MAJOR}.${Mapper_VERSION_MINOR}.${Mapper_VERSION_PATCH}")
35+
set(Mapper_VERSION_DISPLAY "${Mapper_VERSION}")
3636
endif()
3737

3838
set(Mapper_COPYRIGHT "(C) 2012-2018 The OpenOrienteering developers")

doc/api/Doxyfile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2014 Kai Pastor
2+
# Copyright 2014, 2015, 2018 Kai Pastor
33
#
44
# This file is part of OpenOrienteering.
55
#
@@ -17,7 +17,7 @@
1717
# along with OpenOrienteering. If not, see <http://www.gnu.org/licenses/>.
1818

1919
PROJECT_NAME = "@PROJECT_NAME@"
20-
PROJECT_NUMBER = "@Mapper_VERSION_MAJOR@.@Mapper_VERSION_MINOR@.@Mapper_VERSION_PATCH@"
20+
PROJECT_NUMBER = "@Mapper_VERSION@"
2121
PROJECT_BRIEF = "API documentation"
2222
PROJECT_LOGO = "@CMAKE_CURRENT_SOURCE_DIR@/../openorienteering.png"
2323

doc/manual/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Copyright 2012, 2013, 2014 Thomas Schöps
3-
# Copyright 2012-2017 Kai Pastor
3+
# Copyright 2012-2018 Kai Pastor
44
#
55
# This file is part of OpenOrienteering.
66
#
@@ -73,7 +73,7 @@ endif()
7373

7474
set(Mapper_COMPRESSED_HELP "Mapper ${Mapper_VERSION_DISPLAY} Manual.qch")
7575
set(Mapper_HELP_COLLECTION "Mapper ${Mapper_VERSION_DISPLAY} Manual.qhc")
76-
set(Mapper_HELP_NAMESPACE "openorienteering.mapper-${Mapper_VERSION_MAJOR}.${Mapper_VERSION_MINOR}.${Mapper_VERSION_PATCH}.help"
76+
set(Mapper_HELP_NAMESPACE "openorienteering.mapper-${Mapper_VERSION}.help"
7777
CACHE INTERNAL "The namespace where the current version's help will be located."
7878
)
7979
if(NOT MANUAL_SECTIONS)

packaging/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2012-2017 Kai Pastor
2+
# Copyright 2012-2018 Kai Pastor
33
#
44
# This file is part of OpenOrienteering.
55
#
@@ -107,12 +107,12 @@ else()
107107
set(_system_name "${CMAKE_SYSTEM_NAME}-unknown")
108108
endif()
109109
set(CPACK_PACKAGE_FILE_NAME
110-
"OpenOrienteering-Mapper-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${_system_name}")
110+
"OpenOrienteering-Mapper-${Mapper_VERSION}-${_system_name}")
111111
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
112112
set(CPACK_STRIP_FILES "TRUE")
113113

114114
set(CPACK_SOURCE_PACKAGE_FILE_NAME
115-
"openorienteering-mapper_${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-src")
115+
"openorienteering-mapper_${Mapper_VERSION}-src")
116116
set(CPACK_SOURCE_IGNORE_FILES
117117
"${PROJECT_BINARY_DIR}"
118118
"/[.]git/"
@@ -128,16 +128,16 @@ if(WIN32)
128128
# Packaging as ZIP archive
129129
set(CPACK_GENERATOR_DEFAULT "ZIP")
130130
#set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
131-
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
132-
set(CPACK_PACKAGE_EXECUTABLES "Mapper" "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
131+
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME} ${Mapper_VERSION}")
132+
set(CPACK_PACKAGE_EXECUTABLES "Mapper" "${CPACK_PACKAGE_NAME} ${Mapper_VERSION}")
133133

134134
find_program(MAKENSIS_EXECUTABLE "makensis")
135135
if(MAKENSIS_EXECUTABLE)
136136
list(APPEND CPACK_GENERATOR_DEFAULT "NSIS")
137137
# The title displayed at the top of the installer
138138
set(CPACK_NSIS_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
139139
# The display name string that appears in the Windows Add/Remove Program control panel
140-
set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
140+
set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_NAME} ${Mapper_VERSION}")
141141
# NSIS start menu links will point to executables in this directory
142142
set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
143143
# A path to the executable that contains the uninstaller icon.
@@ -160,7 +160,7 @@ if(WIN32)
160160
elseif(APPLE)
161161
set(MAPPER_MACOS_SUBDIR "/Mapper.app/Contents/MacOS")
162162
set(CPACK_GENERATOR_DEFAULT "DragNDrop")
163-
set(CPACK_PACKAGE_EXECUTABLES "Mapper" "OpenOrienteering Mapper ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
163+
set(CPACK_PACKAGE_EXECUTABLES "Mapper" "OpenOrienteering Mapper ${Mapper_VERSION}")
164164
set(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/images/mapper-icon/Mapper.icns")
165165
set_target_properties(Mapper PROPERTIES
166166
MACOSX_BUNDLE_INFO_STRING "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}"

packaging/src/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2013, 2014 Kai Pastor
2+
# Copyright 2013, 2014, 2018 Kai Pastor
33
#
44
# This file is part of OpenOrienteering.
55
#
@@ -19,10 +19,10 @@
1919
message(STATUS "Configuring ${PROJECT_NAME} source packaging")
2020

2121
set(Mapper_Source_PREFIX
22-
"openorienteering-mapper-${Mapper_VERSION_MAJOR}.${Mapper_VERSION_MINOR}.${Mapper_VERSION_PATCH}")
22+
"openorienteering-mapper-${Mapper_VERSION}")
2323

2424
set(Mapper_Source_FILE_NAME
25-
"openorienteering-mapper_${Mapper_VERSION_MAJOR}.${Mapper_VERSION_MINOR}.${Mapper_VERSION_PATCH}-src")
25+
"openorienteering-mapper_${Mapper_VERSION}-src")
2626

2727
set(Mapper_Source_FORMAT tgz CACHE STRING
2828
"The archive format for source packages (see `git archive -l` for valid options)")

0 commit comments

Comments
 (0)