On 01/17/2018 04:14 PM, Claus Klein wrote: > 1.) Is ist possible to change the object or/and the dependency file > name generated for ninja?
No one has needed to before because currently-supported compilers all have options to specify the output file name. > 2.) Why generates cmake the objectname as sourcefilename.{c,cpp}.obj? We support adding `src.c` and `src.cxx` together. The object file names need to be distinct. > WindRiver sets the dep file name to objectDir/SourceName.d, so the ".obj" > in "DEP_FILE = path/BaseName.c.obj.d" must be removed > Armcc just uses base name in the same directory as the command runs, > "BaseName.d". Possible approaches to deal with this include: * Extend the Ninja generator with settings to tell it about the above names. * Set `CMAKE_<LANG>_COMPILE_OBJECT` to contain a follow-up command after compiling to rename the compiler-produced depfile and move it to where Ninja wants to see it. Either way there could be problems with source files with the same base name compiling at the same time and overwriting each other's depfiles. Ideally the compilers should be fixed instead. -Brad -- 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: https://cmake.org/mailman/listinfo/cmake-developers