~singpolyma/biboumi

6bebb2f67b73219c455579d5d414418e317e06b9 — Florent Le Coz 6 years ago 1e79705
Remove the second '-' from the package when ~dev is there
1 files changed, 2 insertions(+), 2 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +2 -2
@@ 25,7 25,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Mo
#
set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR})
if(${PROJECT_NAME}_VERSION_SUFFIX MATCHES ".+")
  set(ARCHIVE_NAME ${ARCHIVE_NAME}-${${PROJECT_NAME}_VERSION_SUFFIX})
  set(ARCHIVE_NAME ${ARCHIVE_NAME}${${PROJECT_NAME}_VERSION_SUFFIX})
endif()

if(${PROJECT_NAME}_VERSION_SUFFIX MATCHES "^~dev$")


@@ 38,7 38,7 @@ if(${PROJECT_NAME}_VERSION_SUFFIX MATCHES "^~dev$")
      OUTPUT_STRIP_TRAILING_WHITESPACE)
    if(GIT_REVISION)
      set(${PROJECT_NAME}_VERSION_SUFFIX "${${PROJECT_NAME}_VERSION_SUFFIX} (${GIT_REVISION})")
      set(ARCHIVE_NAME ${ARCHIVE_NAME}-${GIT_REVISION})
      set(ARCHIVE_NAME ${ARCHIVE_NAME}${GIT_REVISION})
    endif()
  endif()
endif()