optimize cmake scripts for subproject use

(cherry picked from commit 19cacd3ecb)
This commit is contained in:
Fabian Keßler
2021-10-24 21:00:11 +02:00
committed by Antonio Sanchez
parent 75ebef26b6
commit d0bfdc1658
3 changed files with 45 additions and 35 deletions

View File

@@ -51,7 +51,7 @@ endforeach()
if(EIGEN_Fortran_COMPILER_WORKS)
if(BUILD_TESTING)
if(EIGEN_BUILD_TESTING)
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
add_subdirectory(testing) # can't do EXCLUDE_FROM_ALL here, breaks CTest
else()