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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake