How to use CMAKE_EXPORT_COMPILE_COMMANDS? March 23, 2023 by Tarik I suggest setting set(CMAKE_EXPORT_COMPILE_COMMANDS ON) in the CMakeList.txt