feat(3p/nix): Configure CMake to generate compile commands
This commit is contained in:
parent
e494a347b5
commit
91ddc7603d
1 changed files with 4 additions and 0 deletions
4
third_party/nix/CMakeLists.txt
vendored
4
third_party/nix/CMakeLists.txt
vendored
|
@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.16)
|
||||||
project(nix CXX)
|
project(nix CXX)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
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
|
# The following lines import CMake-native dependencies which may
|
||||||
# contain useful definitions. Other dependencies are not treated
|
# contain useful definitions. Other dependencies are not treated
|
||||||
# specially by CMake and are only linked into the resulting binary.
|
# specially by CMake and are only linked into the resulting binary.
|
||||||
|
|
Loading…
Reference in a new issue