]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: always export compile_commands.json in deal.II and user projects 14465/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 24 Nov 2022 12:02:21 +0000 (06:02 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 24 Nov 2022 12:02:21 +0000 (06:02 -0600)
CMakeLists.txt
cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index 51d577c7fe0f777775cd5181dc2f6910cfe93681..4319cbae348b5680633d2bc902483754fae301cd 100644 (file)
@@ -35,6 +35,8 @@ MESSAGE(STATUS "")
 
 CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0)
 
+set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
+
 #
 # We support all policy changes up to version 3.3. Thus, explicitly set all
 # policies CMP0001 - CMP0054 to new for version 3.3 (and later) to avoid
index 3ccfdfcbbcb718521b531725bf28de2aa9ccdc4f..e2b99f691251f663810a2494e42175a2cb64d69b 100644 (file)
@@ -44,6 +44,8 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT)
     SET(_make_command " $ make")
   ENDIF()
 
+  set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
+
   # Define and setup a compilation target:
   ADD_EXECUTABLE(${TARGET} ${TARGET_SRC})
   DEAL_II_SETUP_TARGET(${TARGET})

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.