<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I found it strange, the clang-tidy warnings contains only relative paths to header files?</div><div class=""><br class=""></div><div class="">Than I realized , the ninja.rules files contains NO absolute paths to target source and header files.</div><div class=""><br class=""></div><div class="">Is this a BUG or a desired feature?</div><div class=""><br class=""></div><div class="">// regards</div><div class="">Claus</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">--- compile_commands.json.make.gen 2019-07-22 22:21:44.000000000 +0200</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">+++ compile_commands.json.ninja.gen 2019-07-22 22:19:23.000000000 +0200</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">@@ -1,82 +1,97 @@</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> [</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> {</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> "directory": "/Users/clausklein/Workspace/cpp/spdlog/build",</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">- "command": "/opt/local/bin/clang++ -DSPDLOG_COMPILED_LIB -I/Users/clausklein/Workspace/cpp/spdlog/include -O3 -DNDEBUG -Wall -Wextra -Wconversion -pedantic -Werror -Wfatal-errors -std=c++11 -o CMakeFiles/spdlog.dir/src/spdlog.cpp.o -c /Users/clausklein/Workspace/cpp/spdlog/src/spdlog.cpp",</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">+ "command": "/opt/local/bin/clang++ -DSPDLOG_COMPILED_LIB -I../include -O3 -DNDEBUG -Wall -Wextra -Wconversion -pedantic -Werror -Wfatal-errors -std=c++11 -o CMakeFiles/spdlog.dir/src/spdlog.cpp.o -c /Users/clausklein/Workspace/cpp/spdlog/src/spdlog.cpp",</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> "file": "/Users/clausklein/Workspace/cpp/spdlog/src/spdlog.cpp"</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> },</b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">+</b></span></div></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""><br class=""></b></span></div><div style="margin: 0px; line-height: normal; font-family: 'Courier New'; background-color: rgb(255, 147, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Claus-MBP:spdlog clausklein$ make setup</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">mkdir -p build</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">ln -sf scripts/.clang-format .</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">ln -sf scripts/.clang-tidy .</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">cd build && cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_COMPILER=/opt/local/bin/clang++ ..</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- use ccache</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- The CXX compiler identification is Clang 7.0.1</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Check for working CXX compiler: /opt/local/bin/clang++</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Check for working CXX compiler: /opt/local/bin/clang++ -- works</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Detecting CXX compiler ABI info</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Detecting CXX compiler ABI info - done</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Detecting CXX compile features</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Detecting CXX compile features - done</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Build spdlog: 1.4.0</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- spdlog include path: /Users/clausklein/Workspace/cpp/spdlog/include</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Looking for C++ include pthread.h</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Looking for C++ include pthread.h - found</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Looking for pthread_create</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Looking for pthread_create - found</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Found Threads: TRUE </b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Build type: Release</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Generating examples</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Generating tests</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") </b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Checking for module 'libsystemd'</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- No package 'libsystemd' found</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Generating install</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Configuring done</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Generating done</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-- Build files have been written to: /Users/clausklein/Workspace/cpp/spdlog/build</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">touch .configure</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">ln -sf /Users/clausklein/Workspace/cpp/spdlog/build/compile_commands.json .</b></span></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Claus-MBP:spdlog clausklein$ grep -w include build/build.ninja | sort -u</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> INCLUDES = -I../include</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">include rules.ninja</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Claus-MBP:spdlog clausklein$ cmake --version</b></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">cmake version 3.14.5</b></span></div><div style="margin: 0px; line-height: normal; min-height: 20px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""></b></span><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">CMake suite maintained and supported by Kitware (<a href="http://kitware.com/cmake" class="">kitware.com/cmake</a>).</b></span></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div></span></div></body></html>