[CMake] CPack - NSIS - Add multiple directory paths inside PATH environment variable

Bogdan Cristea cristeab at gmail.com
Thu Nov 8 05:14:21 EST 2012


On Thursday 08 November 2012 10:58:48 Romain LEGUAY wrote:

set(CPACK_NSIS_MODIFY_PATH ON) 
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "\${EnvVarUpdate} \"$0\" \"PATH\"  \"A\" 
\"HKCU\" \"${MY_INCLUDE_DIR};${MY_LIB_DIR}\"")

I have never changed the PATH environment before, but the problem might be the 
backslashes you use in CPACK_NSIS_EXTRA_INSTALL_COMMANDS. Here is how I 
specify a path for this command:
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait 
'\\\"$INSTDIR\\\\bin\\\\kbuildsycoca4.exe\\\"'")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121108/e5d1fdd3/attachment.htm>


More information about the CMake mailing list