From daa3861e2893d2ca5e7a00b0931e19b2965e7df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= Date: Sun, 1 Sep 2024 22:27:06 +0200 Subject: [PATCH] [cmake] Revert "make use of "enable_examples" in CMakeLists.txt" This reverts parts of commit 367fd39713dc8efe1edea95b5bafb4863b9b6d0b. The use of "enable_examples" is in EXAMPLES/CMakeLists.txt. The advanatge of the solution is that even with disabled enable_examples the exmaples can be manually built. --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4cd7fb3..32f81325 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,15 +255,13 @@ if(enable_tests) add_subdirectory(TESTING) endif() -if (enable_examples) - add_custom_target(examples) - add_subdirectory(EXAMPLE) -endif() - +add_custom_target(examples) if (enable_fortran) add_subdirectory(FORTRAN) endif() +add_subdirectory(EXAMPLE) + if (enable_doc) add_subdirectory(DOC) endif()