I have a slight issue with the new CPack stuff.
CPack.cmake:
cpack_set_if_not_set(CPACK_NSIS_DISPLAY_NAME
"${CPACK_PACKAGE_INSTALL_DIRECTORY}")
cpack_set_if_not_set(CPACK_NSIS_PACKAGE_NAME
"${CPACK_PACKAGE_INSTALL_DIRECTORY}")
...
cpack_set_if_not_set(CPACK_PACKAGE_INSTALL_DIRECTORY
"${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION}")
I set CPACK_PACKAGE_INSTALL_DIRECTORY to:
set(CPACK_PACKAGE_INSTALL_DIRECTORY "NVIDIA Corporation\\\\OptiX SDK
${CPACK_PACKAGE_VERSION}")
set(CPACK_NSIS_DISPLAY_NAME "NVIDIA OptiX ${CPACK_PACKAGE_VERSION}")
In my generated CPackConfig.cmake file I now have:
SET(CPACK_NSIS_DISPLAY_NAME "NVIDIA OptiX 1.0.0")
...
SET(CPACK_NSIS_PACKAGE_NAME "NVIDIA Corporation\OptiX SDK 1.0.0")
...
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "NVIDIA Corporation\\OptiX SDK 1.0.0")
CMake then chokes on the PACKAGE_NAME due to the \O which should be \\O. I
set the DISPLAY_NAME and INSTALL_DIRECTORY, but the PACKAGE_NAME is set by
the cpack_set_if_not_set and sends my string through an extra processing
step.
I can certainly add my own entry for CPACK_NSIS_PACKAGE_NAME to avoid this
now that I know about it, but PACKAGE_NAME is a new variable and my old
script broke.
James
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake