CPack Archive generator doesn't use CPACK_ARCHIVE_FILE_NAME
Given a simple CMake project like this:
cmake_minimum_required(VERSION 3.13) project(cmake-test) set(CPACK_GENERATOR ZIP) set(CPACK_PACKAGE_FILE_NAME foo) set(CPACK_ARCHIVE_FILE_NAME bar) include(CPack)
, building the
package target produces a
foo.zip file, instead of
bar.zip as implied by the documentation.
cpack -V -G ZIP output:
CPack: Enable Verbose CPack Verbose: Read CPack config file: CPack Verbose: Read CPack configuration file: /tmp/cmake-test/build/CPackConfig.cmake CPack Verbose: Specified generator: ZIP CPack Verbose: Use generator: cmCPackZIPGenerator CPack Verbose: For project: cmake-test CPack: Create package using ZIP CPack Verbose: Read description file: /usr/share/cmake-3.13/Templates/CPack.GenericDescription.txt CPack Verbose: [ZIP] requested component grouping = ONE_PER_GROUP CPack: Install projects CPack: - Run preinstall target for: cmake-test CPack: - Install project: cmake-test CPack Verbose: Install configuration: "" CPack: Create package CPack Verbose: Package files to: /tmp/cmake-test/build/_CPack_Packages/Linux/ZIP/foo.zip CPack Verbose: Copying final package(s) : CPack: - package: /tmp/cmake-test/build/foo.zip generated.
I've checked this with:
- CMake 3.13.4 (Linux),
- CMake 3.16.4 (Windows).
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information