Hello everyone,
I make a library and when I install it, I want to put inside the PATH
environment variable the include directory path and the library path.
I write this:
set(CPACK_NSIS_MODIFY_PATH ON)
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "\${EnvVarUpdate} \"$0\" \"PATH\"
\"A\" \"HKCU\" \"${MY_INCLUDE_DIR};${MY_LIB_DIR}\"")
where MY_INCLUDE_DIR and MY_LIB_DIR are just some relative path.
Unfortunately, my PATH variable doesn't change.
Where can I found some example to modify the PATH whit NSIS and CPack?
Thank you.
Romain
--
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