mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
optimize cmake scripts for subproject use
(cherry picked from commit 19cacd3ecb)
This commit is contained in:
committed by
Antonio Sanchez
parent
75ebef26b6
commit
d0bfdc1658
@@ -2,7 +2,7 @@ add_subdirectory(Eigen)
|
||||
if(EIGEN_BUILD_DOC)
|
||||
add_subdirectory(doc EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
if(BUILD_TESTING)
|
||||
if(EIGEN_BUILD_TESTING)
|
||||
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
|
||||
add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user