[CMake] INCLUDE_DIRECTORIES and UNIX style separated environment variables

BlinkEye gentoo at blinkeye.ch
Thu Sep 20 14:27:45 EDT 2007


On Thu, September 20, 2007 19:34, kitts wrote:
> On Tuesday 18 Sep 2007 10:31:25 pm blinkeye wrote:
>> >> I'm not able to convince cmake to properly use an environment variable
>> >> which consists of more than one entry for the INCLUDE_DIRECTORIES
>> >> directive. It always takes the value as it is:
>> >>
>> >> Passing
>> >>
>> >> MY_SPECIAL_INCLUDE32=/foo/bar/32bit/include:/foo/bar/include
>> >>
>> >> to INCLUDE_DIRECTORIES like
>> >>
>> >> INCLUDE_DIRECTORIES( "$ENV{MY_SPECIAL_INCLUDE32}" )
>> >>
>> >> results in
>> >>
>> >> /usr/bin/c++ -I/foo/bar/32bit/include:/foo/bar/include ...
>> >>
>> >> instead of
>> >>
>> >> /usr/bin/c++ -I/foo/bar/32bit/include -I/foo/bar/include ...
>
> What happens if you do not include the quotes?
>
> INCLUDE_DIRECTORIES( $ENV{MY_SPECIAL_INCLUDE32} )
>
> Just a guess... Maybe the quotes are making it assume the whole as a single
> string.
> --
> Cheers!
> kitts
>
Thanks for the reply, but this doesn't work neither.

I wonder if I'm the only one who ran into what appears to be a very basic issue.




More information about the CMake mailing list