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 _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake