[CMake] INCLUDE_DIRECTORIES and UNIX style separated environment
variables
kitts
kitts.mailinglists at gmail.com
Thu Sep 20 13:34:53 EDT 2007
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
More information about the CMake
mailing list