-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get better naming for CPack targets of binary vs source
Signed-off-by: Ben Collins <[email protected]>
- Loading branch information
1 parent
5075745
commit ba1d96a
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,16 @@ set(CPACK_GENERATOR "TBZ2") | |
set(CPACK_PACKAGE_VENDOR "maClara, LLC") | ||
set(CPACK_SOURCE_GENERATOR "TBZ2") | ||
set(CPACK_SOURCE_TBZ2 "ON") | ||
set(CPACK_SET_DESTDIR "ON") | ||
|
||
set(CPACK_PACKAGE_CONTACT "Ben Collins <[email protected]>") | ||
set(CPACK_IGNORE_FILES "/\\.git/" "\\.gitignore" "\\.swp\$" "\\.DS_Store" "\\.travis.yml") | ||
list(APPEND CPACK_IGNORE_FILES "/build/" "Makefile.*" "configure.ac" "/m4/" "Doxygen\\.mk") | ||
list(APPEND CPACK_IGNORE_FILES "/dist/" "jwt_export\\.h\\.in" "/m4-local/") | ||
|
||
string(TOLOWER ${CPACK_PACKAGE_NAME} CPACK_PACKAGE_NAME) | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") | ||
if (NOT ${CPACK_SOURCE_PACKAGE_FILE_NAME} EQUAL "") | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") | ||
else() | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-binary") | ||
endif() |