diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-29T21·31+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-29T21·31+0100 |
commit | 91ddc7603d2fa2b59299375adc8a245558a9e811 (patch) | |
tree | 2003f89294b2a99d3a0c05deaa41934e0c904701 /third_party/nix | |
parent | e494a347b52c96543eec91bc73756a22fe336292 (diff) |
feat(3p/nix): Configure CMake to generate compile commands r/871
Diffstat (limited to 'third_party/nix')
-rw-r--r-- | third_party/nix/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/nix/CMakeLists.txt b/third_party/nix/CMakeLists.txt index 88a23cd8805c..012a63bcb927 100644 --- a/third_party/nix/CMakeLists.txt +++ b/third_party/nix/CMakeLists.txt @@ -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. |