[CMake] CMake Ninja generator issues: any showstoppers?

2012-04-17 Thread Alexander Usov
13069 looks reasonably serious, but I won't consider it a show-stopper. It's relatively easy to work around. -- Best regards, Alexander. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

[CMake] [PATCH] Correctly generate depfiles when some pre-processor (like distcc or ccache) is used

2012-03-14 Thread Alexander Usov
In pre-processing mode GCC doesn't have target filename and has to guess target name for depfile. Use -MT to force correct target name. gcc -c -MMD -o foo.cc.o foo.cc => foo.cc.o: gcc -E -MMD -o foo.i foo.cc => foo.o: gcc -E -MMD -MT foo.cc.o -o foo.i foo.cc => foo.cc.o: -

[CMake] Ninja generator bug

2012-03-14 Thread Alexander Usov
Hi, I'm testing CMake's Ninja generator for our project and have found a bug in it. The fix is pretty trivial -- just 2-line change. What is the correct procedure for submitting it? I have looked at the bug tracker, but it seems to only list released versions of cmake. -- Best regards,   Alexan

[CMake] UPD: dependencies for header files

2012-03-09 Thread Alexander Usov
Nevrmind -- I just figured out my mistake. -- Best regards,   Alexander. -- 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

[CMake] How to correctly set dependencies for header files generated in another directory

2012-03-09 Thread Alexander Usov
Hi, I'm trying to figure out how to correctly set up dependencies for generated header files. I have prepared an example setup here: http://github.com/usovalx/cmake_test.git Quick summary: root/CMakeLists.txt: add_subdirectory(sub1) add_subdirectory(sub2) sub2/CMakeLists.txt: add_custom_command(