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
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/
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