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\\\"'")

--

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

Reply via email to