On 10/10/2014 01:10 PM, Nils Gladitz wrote:
Ninja on windows invokes the resource compiler through cmcldeps.

When passing ${CMAKE_BINARY_DIR} as an include directory CMake used to
(3.0) add the absolute path to the command line; now "-I." is being
added instead.

The relative path does not seem to work in context of cmcldeps/rc since
headers in ${CMAKE_BINARY_DIR} aren't found anymore.

This seems to have broken with "cmLocalGenerator: Simplify GetIncludeFlags output formatting" (b9aa5041):
  http://www.cmake.org/gitweb?p=cmake.git;a=commit;h=b9aa5041

I used the following test case to reproduce the issue:

  cmake_minimum_required(VERSION 3.0)

  file(WRITE foo.cpp "int main() {}")
  file(WRITE foo.rc "#include <bar.rc>")
  file(WRITE ${CMAKE_BINARY_DIR}/bar.rc "")

  add_executable(foo foo.cpp foo.rc)

  target_include_directories(foo PRIVATE ${CMAKE_BINARY_DIR})


Nils
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to