Reorganize CMake and minimize configuration for non-top-level builds.

This commit is contained in:
Antonio Sánchez
2024-05-01 17:42:53 +00:00
parent c1d637433e
commit 9700fc847a
4 changed files with 604 additions and 576 deletions

View File

@@ -4,7 +4,7 @@ if(EIGEN_BUILD_DOC)
endif()
if(EIGEN_BUILD_TESTING)
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest
add_subdirectory(test) # CTest automatic test building relies on the "all" target.
else()
add_subdirectory(test EXCLUDE_FROM_ALL)
endif()