File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ add_executable(boo foo.cpp)
77install (TARGETS foo DESTINATION lib)
88install (TARGETS boo DESTINATION bin)
99
10- string (COMPARE EQUAL "$ENV{TRAVIS_TAG} " "" is_empty )
11- if (NOT is_empty )
10+ string (COMPARE NOTEQUAL "$ENV{TRAVIS_TAG} " "" travis_deploy )
11+ if (travis_deploy )
1212 string (REGEX REPLACE "^v([0-9]+)\\ .[0-9]+\\ .[0-9]+$" "\\ 1" major_ver "$ENV{TRAVIS_TAG} " )
1313 string (REGEX REPLACE "^v[0-9]+\\ .([0-9]+)\\ .[0-9]+$" "\\ 1" minor_ver "$ENV{TRAVIS_TAG} " )
1414 string (REGEX REPLACE "^v[0-9]+\\ .[0-9]+\\ .([0-9]+)$" "\\ 1" patch_ver "$ENV{TRAVIS_TAG} " )
@@ -22,4 +22,9 @@ set(CPACK_PACKAGE_VERSION_MAJOR ${major_ver})
2222set (CPACK_PACKAGE_VERSION_MINOR ${minor_ver} )
2323set (CPACK_PACKAGE_VERSION_PATCH ${patch_ver} )
2424
25+ string (COMPARE EQUAL "$ENV{CONFIG} " "Debug" debug_build)
26+ if (travis_deploy AND debug_build)
27+ set (CPACK_PACKAGE_NAME "${PROJECT_NAME} -Debug" )
28+ endif ()
29+
2530include (CPack )
You can’t perform that action at this time.
0 commit comments