[CMake] execute_process, set a path

Edward Flanigan eflanigan00 at hotmail.com
Thu Dec 11 13:39:53 EST 2008


How do I set LD_LIBRARY_PATH so I can call execute_process( ) using that library path.


Example:

execute_process(COMMAND echo \$PATH  COMMAND LD_LIBRARY_PATH=/home/my COMMAND myExe )

The 1st command should print the $PATH
the 2nd should set LD_LIBARY_PATH
the 3rd should execute myExe (with LD_LIBRARY_PATH being the correct on specified in COMMAND 2)

Thanks.



_________________________________________________________________
Suspicious message? There’s an alert for that. 
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081211/4908b5be/attachment.htm>


More information about the CMake mailing list