set(VCPKG_USE_HOST_TOOLS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Generate compile_commands.json for use with LSPs") project(dosbox-staging LANGUAGES C CXX VERSION 0.83.0 0 comments on commit e7b1298 Please sign in to comment. Footer...
This setting instructs CMake to generate compile_commands.json for use with clangd. This is useful for those of us who don't use an IDE, and doesn't place any significant strain on the build system...
The change has been manually tested on: Checklist Please tick the items as you have addressed them. Don't remove items; leave the ones that are not applicable unchecked. I have:
-DWITH_LSP=no \ -DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH_LFORTRAN;$CONDA_PREFIX" \ -DCMAKE_INSTALL_PREFIX=`pwd`/inst \ -DCMAKE_EXPORT_COMPILE_COMMANDS=yes \ . cmake --build . -j16 0 comments on commit 53d738d Please sign in to comment. Footer...