feat(3p/nix): Configure CMake to generate compile commands

This commit is contained in:
Vincent Ambo 2020-05-29 22:31:07 +01:00
parent e494a347b5
commit 91ddc7603d

View file

@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.16)
project(nix CXX)
set(CMAKE_CXX_STANDARD 17)
# Export compile_commands.json which can be used by tools such as
# clangd and clang-tidy.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# The following lines import CMake-native dependencies which may
# contain useful definitions. Other dependencies are not treated
# specially by CMake and are only linked into the resulting binary.