From 775b27d0dc43eaa8717768e0fd872dfd93288039 Mon Sep 17 00:00:00 2001
From: Matthias Maier <tamiko@43-1.org>
Date: Thu, 13 Apr 2023 15:35:47 -0500
Subject: [PATCH] examples/step-1: undo accidental changes to CMakeLists.txt

This partially reverts a82dd4cbcf01e299ea23a9ba28c41dc3bcded1a7

In reference to #14971
---
 examples/step-1/CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/step-1/CMakeLists.txt b/examples/step-1/CMakeLists.txt
index a0210f27fd..8dd687f7f1 100644
--- a/examples/step-1/CMakeLists.txt
+++ b/examples/step-1/CMakeLists.txt
@@ -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()
-- 
2.39.5