[CMake] How to insert environment variable inINCLUDE_DIRECTORIES

Tyler Roscoe tyler at cryptio.net
Wed Apr 22 01:04:30 EDT 2009


On Wed, Apr 22, 2009 at 10:41:13AM +0530, Vikranth Gaddam wrote:
> If you have set MY_PATH variable using SET(MY_PATH  XXXX)
> then INCLUDE_DIRECTORIES(${MY_PATH}/XXX/XXX) should work.
> 
> if you want to get from environment variable use $ENV{MY_PATH}.

I think OP wants a variable that is interpolated at Visual Studio time.
Your examples will be interpolated at CMake time.

tyler


More information about the CMake mailing list