[CMake] CPack - NSIS - Add multiple directory paths inside PATH environment variable
Romain LEGUAY
romain.leguay at gmail.com
Thu Nov 8 04:58:48 EST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121108/b65de465/attachment.htm>
More information about the CMake
mailing list