[CMake] how to set environment variable when executing process

Warren Turkal wt at atmos.colostate.edu
Fri Oct 6 13:36:03 EDT 2006


On Friday 06 October 2006 07:59, Brad King wrote:
> SET(ENV{PKG_CONFIG_PATH} "/my/path:$ENV{PKG_CONFIG_PATH}")
> EXECUTE_PROCESS(...)

Of course, this answer is also in the FAQ on the wiki.

wt
-- 
Warren Turkal, Research Associate III/Systems Administrator
Colorado State University, Dept. of Atmospheric Science


More information about the CMake mailing list