Re: [cmake-developers] ninja generator does NOT use absolute paths at rules?

2019-08-17 Thread Claus Klein
There is a workaround about this issue: Create the binary_dir (build) outside the source_dir! Than every path to source files are absolute ;-) i.e.: clausklein$ make -n check mkdir -p ../.build-samples-Debug cd ../.build-samples-Debug && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MA

Re: [cmake-developers] ninja generator does NOT use absolute paths at rules?

2019-07-23 Thread Brad King
On 7/22/19 4:47 PM, Claus Klein wrote: > Than I realized , the ninja.rules files contains NO absolute paths > to target source and header files. Historically the Ninja ecosystem encourages use of relative paths. There is an issue for this in CMake: https://gitlab.kitware.com/cmake/cmake/issues/

[cmake-developers] ninja generator does NOT use absolute paths at rules?

2019-07-22 Thread Claus Klein
Hi, I found it strange, the clang-tidy warnings contains only relative paths to header files? Than I realized , the ninja.rules files contains NO absolute paths to target source and header files. Is this a BUG or a desired feature? // regards Claus --- compile_commands.json.make.gen 201