Skip to content

Commit

Permalink
[cmake] Revert "make use of "enable_examples" in CMakeLists.txt"
Browse files Browse the repository at this point in the history
This reverts parts of commit 367fd39.
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.
  • Loading branch information
gruenich committed Sep 1, 2024
1 parent 367fd39 commit daa3861
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit daa3861

Please sign in to comment.