mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-10 02:39:03 +08:00
clean the support for testing existing sparse problems
This commit is contained in:
parent
83c932ed15
commit
512e0b151b
@ -338,12 +338,9 @@ if(EIGEN_BUILD_BTL)
|
||||
add_subdirectory(bench/btl EXCLUDE_FROM_ALL)
|
||||
endif(EIGEN_BUILD_BTL)
|
||||
|
||||
if(TEST_REAL_CASES)
|
||||
if(NOT WIN32)
|
||||
add_subdirectory(bench/spbench EXCLUDE_FROM_ALL)
|
||||
set(ENV(EIGEN_MATRIX_DIR) ${TEST_REAL_CASES})
|
||||
endif(NOT WIN32)
|
||||
endif(TEST_REAL_CASES)
|
||||
if(NOT WIN32)
|
||||
add_subdirectory(bench/spbench EXCLUDE_FROM_ALL)
|
||||
endif(NOT WIN32)
|
||||
|
||||
ei_testing_print_summary()
|
||||
|
||||
|
@ -18,13 +18,15 @@ set(LAPACK_FOUND TRUE)
|
||||
set(BLAS_LIBRARIES eigen_blas)
|
||||
set(LAPACK_LIBRARIES eigen_lapack)
|
||||
|
||||
if(TEST_REAL_CASES)
|
||||
set(EIGEN_TEST_MATRIX_DIR "" CACHE STRING "Enable testing of realword sparse matrices contained in the specified path")
|
||||
if(EIGEN_TEST_MATRIX_DIR)
|
||||
if(NOT WIN32)
|
||||
add_definitions( -DTEST_REAL_CASES="${TEST_REAL_CASES}" )
|
||||
message(STATUS "Test realworld sparse matrices: ${EIGEN_TEST_MATRIX_DIR}")
|
||||
add_definitions( -DTEST_REAL_CASES="${EIGEN_TEST_MATRIX_DIR}" )
|
||||
else(NOT WIN32)
|
||||
message(STATUS, "REAL CASES CAN NOT BE CURRENTLY TESTED ON WIN32")
|
||||
message(STATUS "REAL CASES CAN NOT BE CURRENTLY TESTED ON WIN32")
|
||||
endif(NOT WIN32)
|
||||
endif(TEST_REAL_CASES)
|
||||
endif(EIGEN_TEST_MATRIX_DIR)
|
||||
|
||||
set(SPARSE_LIBS " ")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user