aboutsummaryrefslogtreecommitdiffhomepage
path: root/blas
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-12-12 13:10:00 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-12-12 13:10:00 +0100
commitc7f01157ddf50ee6f7ae8f837325e3f377f35a1b (patch)
tree73428b25d9c3b92055f08486de297f68b5c4500e /blas
parente05c79cbd868f1f9affb0348873579e5bbe67bd4 (diff)
enforce compilation of blas unit tests when running ctest
Diffstat (limited to 'blas')
-rw-r--r--blas/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/blas/CMakeLists.txt b/blas/CMakeLists.txt
index 8c6792ad1..c8d5c241f 100644
--- a/blas/CMakeLists.txt
+++ b/blas/CMakeLists.txt
@@ -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)