]> https://gitweb.dealii.org/ - dealii.git/commitdiff
examples/step-1: undo accidental changes to CMakeLists.txt 15093/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 13 Apr 2023 20:35:47 +0000 (15:35 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 13 Apr 2023 20:36:14 +0000 (15:36 -0500)
This partially reverts a82dd4cbcf01e299ea23a9ba28c41dc3bcded1a7

In reference to #14971

examples/step-1/CMakeLists.txt

index a0210f27fddfd46a752062c4ace963e3a2ad8334..8dd687f7f13964c7fbdc959b3a53519ee127d566 100644 (file)
@@ -22,7 +22,6 @@ set(TARGET_SRC
 # Usually, you will not need to modify anything beyond this point...
 
 cmake_minimum_required(VERSION 3.13.4)
-project(${TARGET})
 
 find_package(deal.II 9.5.0
   HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
@@ -35,5 +34,6 @@ if(NOT ${deal.II_FOUND})
     )
 endif()
 
-add_executable(${TARGET} ${TARGET_SRC})
-target_link_libraries(${TARGET} dealii::dealii)
+deal_ii_initialize_cached_variables()
+project(${TARGET})
+deal_ii_invoke_autopilot()

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.