Commit ca236319 authored by Ghislain MARY's avatar Ghislain MARY

Do not append project build version to package name if it is 0 (that's the...

Do not append project build version to package name if it is 0 (that's the case for tagged releases).
parent 5ec81540
...@@ -34,12 +34,14 @@ set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}) ...@@ -34,12 +34,14 @@ set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${PROJECT_VERSION})
set(CPACK_SOURCE_GENERATOR "TGZ") set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_IGNORE_FILES set(CPACK_SOURCE_IGNORE_FILES
"${CMAKE_BINARY_DIR}" "${CMAKE_BINARY_DIR}"
"^${PROJECT_SOURCE_DIR}/.git*" "^${PROJECT_SOURCE_DIR}/.git*"
) )
bc_project_build_version(${PROJECT_VERSION} PROJECT_VERSION_BUILD)
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${PROJECT_VERSION_BUILD}") bc_project_build_version(${PROJECT_VERSION} PROJECT_VERSION_BUILD)
if(PROJECT_VERSION_BUILD)
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${PROJECT_VERSION_BUILD}")
endif()
message("-- Package file name is ${CPACK_PACKAGE_FILE_NAME}" ) message("-- Package file name is ${CPACK_PACKAGE_FILE_NAME}" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment