[CMake] INCLUDE_DIRECTORIES empty?
Michael Wild
themiwi at gmail.com
Wed Mar 17 09:30:48 EDT 2010
On 17. Mar, 2010, at 13:58 , David Doria wrote:
> If I do something like this:
>
> INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ../../include)
>
> I'd expect ../../include to be appended to the current INCLUDE_DIRECTORIES.
>
> So then when I do this:
> MESSAGE("INCLUDE_DIRECTORIES: ${INCLUDE_DIRECTORIES}")
>
> at the very least, I should see ../../include, but probably other
> paths before it. Instead, I see only:
> INCLUDE_DIRECTORIES:
>
> I'm pretty sure I have the syntax correct because if I do:
>
> MESSAGE("CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")
>
> I see:
> CMAKE_BINARY_DIR: /media/portable/src/meshtoolboxVTK/src/SpinRecognize/bin
>
> Any thoughts on why I can't see the contents of the variable
> INCLUDE_DIRECTORIES?
>
> Thanks,
>
> David
The syntax is:
INCLUDE_DIRECTORIES(../../include)
This will append to the already existing include directories.
Michael
More information about the CMake
mailing list