On 8/1/2011 12:08 PM, Łukasz Tasz wrote:
Hi,
I would like to execute process, during cmake phase, but I need to
tune LD_LIBRARY_PATH a little,
I would like to get something like:
execute_proccess(COMMAND LD_LIBRARY_PATH=my_path my_proccess
ERROR_VARIABLE _error)
Unfornately command above is not working...
I'm using cmake 2.6
thanks for any clues,
Lukasz
The way to do this is to use the set command.
set(ENV{LD_LIBRARY_PATH} my_path)
execute_process(COMMAND my_process)
-Bill
_______________________________________________
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