mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-21 03:11:25 +08:00
enforce compilation of blas unit tests when running ctest
This commit is contained in:
parent
e05c79cbd8
commit
c7f01157dd
@ -294,7 +294,11 @@ add_subdirectory(unsupported)
|
||||
|
||||
add_subdirectory(demos EXCLUDE_FROM_ALL)
|
||||
|
||||
add_subdirectory(blas EXCLUDE_FROM_ALL)
|
||||
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
|
||||
add_subdirectory(blas)
|
||||
else()
|
||||
add_subdirectory(blas EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
# must be after test and unsupported, for configuring buildtests.in
|
||||
add_subdirectory(scripts EXCLUDE_FROM_ALL)
|
||||
|
@ -38,5 +38,10 @@ install(TARGETS eigen_blas
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
|
||||
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
|
||||
add_subdirectory(testing) # can't do EXCLUDE_FROM_ALL here, breaks CTest
|
||||
else()
|
||||
add_subdirectory(testing)
|
||||
endif()
|
||||
|
||||
endif(CMAKE_Fortran_COMPILER_WORKS)
|
||||
|
Loading…
Reference in New Issue
Block a user