mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
next attempt ... introduce EIGEN_CMAKE_RUN_FROM_CTEST, in that case don't EXCLUDE_FROM_ALL
This commit is contained in:
@@ -124,7 +124,11 @@ add_subdirectory(doc EXCLUDE_FROM_ALL)
|
||||
|
||||
include(CTest)
|
||||
enable_testing() # must be called from the root CMakeLists, see man page
|
||||
add_subdirectory(test EXCLUDE_FROM_ALL) # can't do EXCLUDE_FROM_ALL here, breaks CTest
|
||||
if(EIGEN_CMAKE_RUN_FROM_CTEST)
|
||||
add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest
|
||||
else(EIGEN_CMAKE_RUN_FROM_CTEST)
|
||||
add_subdirectory(test EXCLUDE_FROM_ALL)
|
||||
endif(EIGEN_CMAKE_RUN_FROM_CTEST)
|
||||
|
||||
add_subdirectory(unsupported)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user