Skip to content

Commit

Permalink
cmake: override CPACK_PACKAGE_VERSION to avoid wrong composition
Browse files Browse the repository at this point in the history
By default, CPack would compose package version with dots between major,
minor and patch version strings.

However, SC includes either a dot, or a hyphen in the patch version string,
and assumes composition without a delimiter.
  • Loading branch information
jleben committed Nov 28, 2012
1 parent 6c12190 commit e2c6eef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ endif()
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})

if(WIN32)
set(CPACK_GENERATOR ZIP)
Expand Down

0 comments on commit e2c6eef

Please sign in to comment.