On Thu, Apr 24, 2014 at 1:21 AM, Stephen Kelly wrote:
> Andrew Fuller wrote:
>
> > It seems absolute paths are necessary. eg:
> >
> > target_include_directories( MyTarget PRIVATE
> > $<$:${CMAKE_CURRENT_SOURCE_DIR}/some/dir> )
> >
> > will perform as expected.
> >
> > Is this behaviour expected (
Andrew Fuller wrote:
> It seems absolute paths are necessary. eg:
>
> target_include_directories( MyTarget PRIVATE
> $<$:${CMAKE_CURRENT_SOURCE_DIR}/some/dir> )
>
> will perform as expected.
>
> Is this behaviour expected (and should be documented) or should I file a
> bug?
CMake doesn't know
Running CMake 3.0-rc3 and the docs for target_include_directories say the
paths may be absolute or relative. Indeed the following works as desired:
target_include_directories( MyTarget PRIVATE some/dir )
The docs also mention that generator expressions can be used. However the
following produce