On Sunday 27 January 2013, Stephen Kelly wrote: > 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
Ok. This applies to setting the target property directly. But, I think target_include_directories() could still handle relative paths so that CMAKE_CURRENT_SOURCE_DIR is prepended before it is set as a target property. Alex -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
