Extend superlu cmake script to check version

This commit is contained in:
Gael Guennebaud
2015-11-30 14:48:11 +01:00
parent afa11d646d
commit 6fcd316f23
3 changed files with 50 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ if(UMFPACK_FOUND AND BLAS_FOUND)
set(UMFPACK_ALL_LIBS ${UMFPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
find_package(SuperLU)
find_package(SuperLU 4.0)
if(SUPERLU_FOUND AND BLAS_FOUND)
add_definitions("-DEIGEN_SUPERLU_SUPPORT")
include_directories(${SUPERLU_INCLUDES})