Skip to content

Commit 39280ab

Browse files
committed
Fix source package file name for .tar.gz packages.
1 parent 29ffa4c commit 39280ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/Package.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ set(CPACK_COMPONENT_DOC_DESCRIPTION "Documentation for the AXR SDK and examples"
5757
# Filenames
5858
include(PackageFilenames)
5959
package_file_name(CPACK_PACKAGE_FILE_NAME "${AXR_PACKAGE_PREFIX}" "${AXR_VERSION_STRING}")
60-
src_package_file_name(CPACK_SOURCE_PACKAGE_FILE_NAME "${AXR_PACKAGE_PREFIX}" "${AXR_VERSION_STRING}")
60+
src_package_file_name(CPACK_SOURCE_PACKAGE_FILE_NAME "libaxr" "${AXR_VERSION_STRING}")
6161
set(CPACK_SOURCE_IGNORE_FILES ".git" ".DS_Store" "thumbs.db" "CMakeLists.txt.user")
6262

6363
# Source package

cmake/PackageOverrides.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if(CPACK_GENERATOR STREQUAL "DEB" OR CPACK_GENERATOR STREQUAL "RPM")
22
set(CPACK_DEB_COMPONENT_INSTALL ON)
33
set(CPACK_RPM_COMPONENT_INSTALL ON)
4-
elseif(CPACK_GENERATOR STREQUAL "TGZ")
4+
elseif(CPACK_GENERATOR STREQUAL "TGZ" AND NOT CPACK_PACKAGE_FILE_NAME MATCHES "-src")
55
set(CPACK_PACKAGE_FILE_NAME "libaxr-${AXR_VERSION_STRING}-OPERATING_SYSTEM-${CMAKE_TARGET_ARCHITECTURE_CODE}")
66
else()
77
# Runtime packages on NSIS/WIX/PackageMaker don't need headers and documentation

0 commit comments

Comments
 (0)