Commit 279a35e3 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

ensure it compile without scotch

parent eb439e34
......@@ -18,15 +18,16 @@ OPTION( SCALFMM_ADDON_HMAT "Set to ON to build ScalFMM HMat interface" OFF )
# if ask to build addon
if(SCALFMM_ADDON_HMAT)
list(APPEND FUSE_LIST "SCOTCH")
if(NOT ENV{SCOTCH_LIB})
set(SCOTCH_NOT_FOUND $ENV{SCOTCH_LIB})
if(NOT SCOTCH_NOT_FOUND)
MESSAGE(STATUS " SCOTCH not found " )
else()
OPTION( SCALFMM_USE_SCOTCH "Set to ON to use scotch" ON )
if (SCALFMM_USE_SCOTCH)
include_directories($ENV{SCOTCH_INC})
SET(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};-L$ENV{SCOTCH_LIB};-lscotch;-lscotcherr")
endif()
endif
endif()
# first build lib scalfmmhmat
set(LIBRARY_OUTPUT_PATH ../lib/${CMAKE_BUILD_TYPE})
......
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