From 5b90e56e751e329daf0a42ddc48e632ea92550f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 31 Oct 2022 10:47:41 +0100 Subject: [PATCH] The commented-out part seems to be necessary, uncommenting. --- 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 97c206470..d469b51f1 100644 --- a/cmake/Modules/FindMETIS.cmake +++ b/cmake/Modules/FindMETIS.cmake @@ -46,8 +46,8 @@ if (METIS_INCLUDE_DIRS OR METIS_LIBRARIES) file(READ "${METIS_INCLUDE_DIRS}/metis.h" metisheader) string(REGEX MATCH "#define METIS_VER_MAJOR[ ]+([0-9]+)" METIS_MAJOR_VERSION ${metisheader}) if(NOT METIS_API_VERSION AND METIS_MAJOR_VERSION) -# string(REGEX REPLACE ".*#define METIS_VER_MAJOR[ ]+([0-9]+).*" "\\1" -# METIS_MAJOR_VERSION "${metisheader}") + string(REGEX REPLACE ".*#define METIS_VER_MAJOR[ ]+([0-9]+).*" "\\1" + METIS_MAJOR_VERSION "${metisheader}") if(METIS_MAJOR_VERSION GREATER_EQUAL 3 AND METIS_MAJOR_VERSION LESS 5) set(METIS_API_VERSION "3") else()