Claus Klein
Claus Klein
Could you please check which python version is used: ```python bash-3.2$ pip --version pip 21.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9) bash-3.2$ python2 WARNING: Python 2.7 is not recommended. This version is...
> Hey @TheLartians thank you for replying. I tried, still no luck though: > > ```shell > $ pip install jinja2 pygments > ... > Successfully installed MarkupSafe-1.1.1 jinja2-2.11.3 pygments-2.5.2...
Hint: all headers included with `#include ` and found with `-isystem` are suppressed by default (at least by `gcc` and `clang` compilers)
When I change the **generated** `compile_commands.json` to: ```json [ { "directory": "/Users/clausklein/Workspace/cpp/ModernCppStarter/build/standalone", "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DFMT_HEADER_ONLY=1 -I/Users/clausklein/Workspace/cpp/ModernCppStarter/include -I_deps/greeter-build/PackageProjectInclude -I/Users/clausklein/.cache/CPM/fmt/9dd47b889fbf7c876d24be56ca097a884004b789/include -isystem /Users/clausklein/.cache/CPM/cxxopts/d5c328043c71a6a5670c290d8646b093756db962/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk...
This fix it temporarily: ```bash perl -i.bak -pe 's#$CPM_SOURCE_CACHE-I#-isystem $1#g' build/install/compile_commands.json run-clang-tidy.py -p build/install source # . . . # no warnings ```
see too https://discourse.cmake.org/t/how-to-prevent-clang-tidy-to-check-sources-added-with-fetchcontents/2871
NOTE: `spdlog` v1.9.2 expects `fmt` v8.0.1 see https://github.com/gabime/spdlog/commit/b83106bed4af1a1ffa67abc2ac6c31422d3c8e5d
> I think this is related to CPM, because I was able to fix the SDL include issue. > why not use the` git repo link` instead of the tar...
I dit it here the same way: https://github.com/ClausKlein/cxx.simplelog/blob/73365bd126ca49ab7bd02e2bd53738f296cdb83a/CMakeLists.txt#L74
What du you want With empty Option CMAKE_INSTALL_PREFIX