Commit 6856502f authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

directly add PTSCOTCH INCDIRS with dependencies to the list of cmake incdirs

parent 5f484dee
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment