[cmake-developers] target_include_directories() accepts only absolute paths ?

Alexander Neundorf neundorf at kde.org
Sun Jan 27 06:06:46 EST 2013


Hi,

the docs for the new target_include_directories() say that it accepts only 
absolute paths.
Why is that so ?
include_directories() (and also link_directories(), see CMP0015) both accept 
relative paths and interpret them as relative to CMAKE_CURRENT_SOURCE_DIR.
Is there a reason why target_include_directories() should behave differently ?

Alex



More information about the cmake-developers mailing list