Re: [cmake-developers] target_include_directories is broken with ninja generator

2013-03-14 Thread Stephen Kelly
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

[cmake-developers] target_include_directories is broken with ninja generator

2013-03-13 Thread Matthew Woehlke
This simple CMakeLists.txt is broken with ninja: cmake_minimum_required(VERSION 2.8.10.20130312) project(Foo) add_executable(foo foo.cpp) target_include_directories(foo PUBLIC $BUILD_INTERFACE:${Foo_BINARY_DIR} $INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include ) ...with Ninja, the

Re: [cmake-developers] target_include_directories is broken with ninja generator

2013-03-13 Thread Matthew Woehlke
On 2013-03-13 20:59, Matthew Woehlke wrote: This simple CMakeLists.txt is broken with ninja: cmake_minimum_required(VERSION 2.8.10.20130312) project(Foo) add_executable(foo foo.cpp) target_include_directories(foo PUBLIC $BUILD_INTERFACE:${Foo_BINARY_DIR}