diff --git a/bin/cc_args.py b/bin/cc_args.py index eebd79fa..0c5efc66 100755 --- a/bin/cc_args.py +++ b/bin/cc_args.py @@ -3,7 +3,7 @@ import sys -CONFIG_NAME = ".clang_complete" +CONFIG_NAME = "../.clang_complete" def readConfiguration(): try: diff --git a/doc/clang_complete.txt b/doc/clang_complete.txt index 73b42bd4..27b7f426 100644 --- a/doc/clang_complete.txt +++ b/doc/clang_complete.txt @@ -326,6 +326,20 @@ After running this command, .clang_complete will be created or updated with new options. If you don't want to update an existing configuration file, delete it before running make. +For modern CMake, we need to use CMAKE__COMPILER_LAUNCHER, e.g. : > + cmake -S . -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER_LAUNCHER=$HOME/.vim/bin/cc_args.py \ + -DCMAKE_CXX_COMPILER_LAUNCHER=$HOME/.vim/bin/cc_args.py \ + && cmake --build build +...for Release builds, or...: > + cmake -S . -B debug \ + -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_C_COMPILER_LAUNCHER=$HOME/.vim/bin/cc_args.py \ + -DCMAKE_CXX_COMPILER_LAUNCHER=$HOME/.vim/bin/cc_args.py \ + && cmake --build debug +...for Debug builds. + ============================================================================== 8. To do *clang_complete-todo*