mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-17 18:09:55 +08:00
bug #1120: Make sure that SuperLU version is checked
This commit is contained in:
parent
ae8b217a01
commit
49d96aee64
@ -60,11 +60,21 @@ endif()
|
||||
|
||||
cmake_pop_check_state()
|
||||
|
||||
if(SuperLU_FIND_VERSION)
|
||||
if(${SUPERLU_VERSION_VAR} VERSION_LESS ${SuperLU_FIND_VERSION})
|
||||
set(SUPERLU_VERSION_OK FALSE)
|
||||
else()
|
||||
set(SUPERLU_VERSION_OK TRUE)
|
||||
endif()
|
||||
else()
|
||||
set(SUPERLU_VERSION_OK TRUE)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(SUPERLU
|
||||
REQUIRED_VARS SUPERLU_INCLUDES SUPERLU_LIBRARIES
|
||||
REQUIRED_VARS SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK
|
||||
VERSION_VAR SUPERLU_VERSION_VAR)
|
||||
|
||||
mark_as_advanced(SUPERLU_INCLUDES SUPERLU_LIBRARIES)
|
||||
|
Loading…
Reference in New Issue
Block a user