Replies: 2 comments 3 replies
-
|
With regards to testing, I think we want to have 3 options actually:
Maybe we can have Yet another choice is to treat |
Beta Was this translation helpful? Give feedback.
-
|
One issue with the current CMake logic is that regardless of what a user sets for The following pattern would be more conventional CMake practice (note: MFEM_ENABLE_TESTING option already follows the pattern): if (MFEM_ENABLE_TESTING)
enable_testing()
add_subdirectory(tests)
endif()
if (MFEM_ENABLE_MINIAPPS)
add_subdirectory(miniapps)
endif()
if (MFEM_ENABLE_BENCHMARKS)
add_subdirectory(tests/benchmarks)
endif()
if (MFEM_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()That is, when a user says |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Personally, I would prefer to have the tests build with the cmake
alltarget whenMFEM_ENABLE_TESTINGis set toONduring configuration. I believe this would then conform to the behavior ofMFEM_ENABLE_EXAMPLESandMFEM_ENABLE_MINIAPPS. It might also be worth having consistency in how such behavior is implemented inCMakelists.txtinstead of the three different approaches currently there. I am happy to make everything consistent with how miniapps are handled below (with an additional line to callenable_testing()ifMFEM_ENABLE_TESTING=ON:for testing
for examples
and for miniapps
Beta Was this translation helpful? Give feedback.
All reactions