aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-12-16 11:37:16 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-12-16 11:37:16 +0100
commit49d96aee6448d67edbb0382fefca746304c5baaa (patch)
tree800a2092d9c8f2a88cacaf5b9a03f84f256863fa /cmake
parentae8b217a01f07711aa2e57f6b3cf93da77d6d82a (diff)
bug #1120: Make sure that SuperLU version is checked
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindSuperLU.cmake12
1 files changed, 11 insertions, 1 deletions
diff --git a/cmake/FindSuperLU.cmake b/cmake/FindSuperLU.cmake
index 259ed7320..e4142fe4d 100644
--- a/cmake/FindSuperLU.cmake
+++ b/cmake/FindSuperLU.cmake
@@ -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)