From 9addf077c53231d78841a721f563a2aad0b6d38e Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.r.kempf@gmail.com>
Date: Mon, 19 Jan 2015 15:50:09 +0100
Subject: [PATCH] [CMake][Bugfix] Fix two typos in the metis test

Tried to include CheckSymbolExists instead of CheckFunctionExists.
The wrong include only triggered in a very rare case, where
the module had not been included from elsewhere in the project.

Also, a typo in a library variable.
---
 cmake/modules/FindMETIS.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/modules/FindMETIS.cmake b/cmake/modules/FindMETIS.cmake
index 3c7d9807c..471e3e9f6 100644
--- a/cmake/modules/FindMETIS.cmake
+++ b/cmake/modules/FindMETIS.cmake
@@ -49,9 +49,9 @@ find_library(METIS_LIBRARY ${METIS_LIB_NAME}
 
 # check metis library
 if(METIS_LIBRARY)
-  list(APPEND CMAKE_REQUIRED_LIBRARIES ${METIS_LIBRARIY})
+  list(APPEND CMAKE_REQUIRED_LIBRARIES ${METIS_LIBRARY})
   set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${METIS_LIBRARY})
-  include(CheckSymbolExists)
+  include(CheckFunctionExists)
   check_function_exists(METIS_PartGraphKway HAVE_METIS_PARTGRAPHKWAY)
 endif(METIS_LIBRARY)
 
-- 
GitLab