-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using CPackOptions for pack-time installer filename selection.
- Loading branch information
1 parent
83b4b3e
commit 4b598a3
Showing
2 changed files
with
19 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
# get commit id from a file: | ||
set(TELEPORT_COMMIT $ENV{TELEPORT_COMMIT}) | ||
set(CPACK_PACKAGE_VERSION_MAJOR "${TELEPORT_COMMIT}") | ||
set(CPACK_PACKAGE_VERSION_MINOR "0") | ||
set(CPACK_PACKAGE_VERSION_PATCH "0") | ||
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") | ||
|
||
message("TELEPORT_COMMIT ${TELEPORT_COMMIT}") | ||
|
||
if("${TELEPORT_COMMIT}" STREQUAL "") | ||
message("Test installer build.") | ||
message("CPACK_PACKAGING_INSTALL_PREFIX ${CPACK_PACKAGING_INSTALL_PREFIX}") | ||
#C:/TestInstallTeleport) | ||
endif() | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${TELEPORT_COMMIT}-x64") | ||
message("CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME}") | ||
|