[cmake-developers] target_include_directories() accepts only absolute paths ?
Stephen Kelly
steveire at gmail.com
Sun Jan 27 06:18:09 EST 2013
Alexander Neundorf wrote:
> 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 ?
>
That results from the semantics of the INCLUDE_DIRECTORIES property and
http://public.kitware.com/Bug/view.php?id=13188
Thanks,
Steve.
More information about the cmake-developers
mailing list