]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: always export compile_commands.json in deal.II and user projects
authorMatthias Maier <tamiko@43-1.org>
Thu, 24 Nov 2022 12:02:21 +0000 (06:02 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 25 Nov 2022 08:06:00 +0000 (02:06 -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 62e5f853a9a4f133d834ea11b2a0f0b7030eab24..068ba018b6b4e62fd1ac6c2e5a673f068ff521db 100644 (file)
@@ -37,6 +37,8 @@
 
 MACRO(DEAL_II_INVOKE_AUTOPILOT)
 
+  SET(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
+
   # Generator specific values:
   IF(CMAKE_GENERATOR MATCHES "Ninja")
     SET(_make_command "$ ninja")

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.