From cc5d81643dd4e605c2ec78b81dd685f22ae85040 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 16 May 2016 18:41:56 +0000 Subject: [PATCH] tentative fix for #286 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10995874ee..fb4bd33318 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -738,7 +738,8 @@ if(HAVE_MESH OR HAVE_SOLVER) # Gmsh currently uses Metis 4 - we should switch to Metis 5 and use the # system lib if available add_subdirectory(contrib/Metis) - include_directories(contrib/Metis) + # make sure to include path before any (system) Metis 5 directories + include_directories(BEFORE contrib/Metis) set_config_option(HAVE_METIS "Metis") message(STATUS "Note: By including Metis you have to comply with Metis' " "special licensing requirements stated in contrib/Metis/README.txt.") -- GitLab