<div dir="ltr">Hello,<div><br></div><div>I am using CMake 2.8.11.2 on Windows to build and package some software. If I do this, it works fine:</div><div><br></div><div><div> set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Wt binary build")</div>
<div> set(CPACK_PACKAGE_VENDOR "emweb bvba")</div><div> set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt")</div><div> set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")</div>
<div> set(CPACK_PACKAGE_VERSION_MAJOR "3")</div><div> set(CPACK_PACKAGE_VERSION_MINOR "3")</div><div> set(CPACK_PACKAGE_VERSION_PATCH "1")</div><div> set(CPACK_PACKAGE_INSTALL_DIRECTORY "Wt ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")</div>
<div> set(CPACK_GENERATOR "ZIP;NSIS")</div><div> include(CPack)</div><div><br></div><div>But if I add this line before include(CPack):</div><div><br></div><div> set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")<br>
</div><div><br></div><div>then CPACK_PACKAGE_NAME, CPACK_PACKAGE_VERSION and CPACK_SYSTEM_NAME are empty and the file is generated as "---.zip" / "---.exe". Am I doing something wrong? (I want to add a couple more variables in the CPACK_PACKAGE_FILE_NAME variable to specify compiler and compiler version, that's why I'm composing CPACK_PACKAGE_FILE_NAME)</div>
<div><br></div><div>Thank you</div><div><br></div>-- <br>Pau Garcia i Quiles<br><a href="http://www.elpauer.org">http://www.elpauer.org</a><br>(Due to my workload, I may need 10 days to answer)
</div></div>