[cmake-developers] target_include_directories is broken with ninja generator

Stephen Kelly steveire at gmail.com
Thu Mar 14 07:02:59 EDT 2013


Matthew Woehlke wrote:

> target_include_directories(foo PUBLIC
> $<BUILD_INTERFACE:${Foo_BINARY_DIR}>
> $<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include>
> )
> 
> ...with Ninja, the include directive passed to the compiler is '-I.'

The '-I.' shouldn't be a problem. I've just tested on linux and it works for 
me.

Please provide the error message you are seeing.

Thanks,

Steve.





More information about the cmake-developers mailing list