I suggest setting
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
in the CMakeList.txt
More Related Contents:
- In CMake, how can I test if the compiler is Clang?
- How do I tell CMake to use Clang on Windows?
- Why won't clang compile this source code that works in VS2012?
- How to properly add include directories with CMake
- Why can’t clang with libc++ in c++0x mode link this boost::program_options example?
- How to detect C++11 support of a compiler with CMake
- c++, usleep() is obsolete, workarounds for Windows/MingW?
- OS specific instructions in CMAKE: How to?
- Error enabling openmp – “ld: library not found for -lgomp” and Clang errors
- How is P0522R0 breaking code?
- How to create a shared library with cmake?
- Override compile flags for single files
- CMake unable to determine linker language with C++
- CMake: include library dependencies in a static library
- Why does Clang optimize away x * 1.0 but NOT x + 0.0?
- CMake does not find Visual C++ compiler
- How to generate assembly code with clang in Intel syntax?
- How to use c++20 modules with CMake?
- How to deal with global-constructor warning in clang?
- cmake include header into every source file
- Are C++17 Parallel Algorithms implemented already?
- Is there a compiler bug exposed by my implementation of an is_complete type trait?
- How to build cmake ExternalProject while configurating main one?
- Handling header files dependencies with cmake
- Clang C++ Cross Compiler – Generating Windows Executable from Mac OS X
- How to handle a transitive dependency conflict using Git submodules and CMake?
- How do I iterate over all CMake targets programmatically?
- cmake – Global linker flag setting (for all targets in directory)
- C++ linking error after upgrading to Mac OS X 10.9 / Xcode 5.0.1
- llvm ir back to human-readable source language?