From 6856502f333f9d41efcd73a3c76419c67e9f475a Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Tue, 30 May 2017 09:52:52 +0200 Subject: [PATCH] directly add PTSCOTCH INCDIRS with dependencies to the list of cmake incdirs --- modules/find/FindPTSCOTCH.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/find/FindPTSCOTCH.cmake b/modules/find/FindPTSCOTCH.cmake index 1e81c0d..56382f7 100644 --- a/modules/find/FindPTSCOTCH.cmake +++ b/modules/find/FindPTSCOTCH.cmake @@ -372,9 +372,7 @@ mark_as_advanced(PTSCOTCH_DIR_FOUND) # Check the size of SCOTCH_Num # --------------------------------- -set(CMAKE_REQUIRED_INCLUDES ${PTSCOTCH_INCLUDE_DIRS}) -# Add ptscotch dependencies incdirs (mainly MPI) to required includes for the examples -list(APPEND CMAKE_REQUIRED_INCLUDES ${PTSCOTCH_INCLUDE_DIRS_DEP}) +set(CMAKE_REQUIRED_INCLUDES ${PTSCOTCH_INCLUDE_DIRS_DEP}) include(CheckCSourceRuns) #stdio.h and stdint.h should be included by scotch.h directly #mpi.h not included into ptscotch.h => MPI_comm undefined -- GitLab