From 9e442be0e0a3424d4a7805235f3e65c4983482ca Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 26 Nov 2018 12:03:54 -0500 Subject: [PATCH] Always export compile commands to json file --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10c13b98..ee4776cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,9 @@ message( STATUS "-------- BUILD-TYPE: ${CMAKE_BUILD_TYPE} --------") # Build static libraries set(BUILD_SHARED_LIBS OFF) +# Export the list of compile-commands into compile_commands.json +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # Enable compiler warnings for the whole project add_compile_options(-Wall $<$:-Og>