[CMake] Cpack and output file naming

Eric Noulard eric.noulard at gmail.com
Thu Jun 14 18:25:15 EDT 2012


2012/6/11 Totte Karlsson <totte at dunescientific.com>:
> Hi,
> How can I suppress version numbers(major, mior, patch in CPACK output on
> windows?
>
> Also, how can one suppress the win32 prefix of the output name.

Currently CPack names the package file using:CPACK_PACKAGE_FILE_NAME
(this does not include the file extension)
so that you can

set(CPACK_PACKAGE_FILE_NAME "whatever")
before
include(CPack)

if you don't CPack provides a default value:
${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}

see:
cpack --help-variable CPACK_PACKAGE_FILE_NAME

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list