<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 &quot;Wt binary build&quot;)</div>

<div>   set(CPACK_PACKAGE_VENDOR &quot;emweb bvba&quot;)</div><div>   set(CPACK_PACKAGE_DESCRIPTION_FILE &quot;${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt&quot;)</div><div>   set(CPACK_RESOURCE_FILE_LICENSE &quot;${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt&quot;)</div>

<div>   set(CPACK_PACKAGE_VERSION_MAJOR &quot;3&quot;)</div><div>   set(CPACK_PACKAGE_VERSION_MINOR &quot;3&quot;)</div><div>   set(CPACK_PACKAGE_VERSION_PATCH &quot;1&quot;)</div><div>   set(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;Wt ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}&quot;)</div>

<div>   set(CPACK_GENERATOR &quot;ZIP;NSIS&quot;)</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 &quot;${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}&quot;)<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 &quot;---.zip&quot; / &quot;---.exe&quot;. 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&#39;s why I&#39;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>