Skip to content
Snippets Groups Projects
Commit 529a2b1f authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Introduced CMake option OGS_BUILD_METIS.

parent dac8d09c
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,7 @@ add_subdirectory(SimpleMeshCreation)
if(OGS_BUILD_GUI)
add_subdirectory(OGSFileConverter)
else()
# When OGS_BUILD_GUI=ON, vtk libraries are linked to every object in
# building, which lets the compilation of mpmetis (in the project
# of PartitionMesh) fail. Therefore, the following subdirectory is
# excluded when OGS_BUILD_GUI=ON.
add_subdirectory(ModelPreparation/PartitionMesh)
endif() # OGS_BUILD_GUI
endif()
if(OGS_BUILD_SWMM)
add_subdirectory(SWMMConverter)
......
......@@ -18,3 +18,7 @@ target_link_libraries(createNeumannBc
MeshLib
${OGS_VTK_REQUIRED_LIBS}
)
if(OGS_BUILD_METIS)
add_subdirectory(PartitionMesh)
endif()
......@@ -66,6 +66,8 @@ if(NOT WIN32 AND OGS_BUILD_SWMM)
message(FATAL_ERROR "OGS_BUILD_SWMM requires Windows!")
endif()
option(OGS_BUILD_METIS "Should metis and the partmesh util be built?" OFF)
option(OGS_NO_EXTERNAL_LIBS "Builds OGS without any external dependencies." OFF)
# Linear solvers
......
......@@ -55,6 +55,6 @@ if(OGS_BUILD_SWMM)
add_subdirectory(${CMAKE_SOURCE_DIR}/ThirdParty/SWMMInterface)
endif()
if(OGS_BUILD_UTILS)
if(OGS_BUILD_METIS)
include(${CMAKE_SOURCE_DIR}/scripts/cmake/MetisSetup.cmake)
endif()
......@@ -18,7 +18,7 @@ endif()
if(OGS_BUILD_GUI)
list(APPEND REQUIRED_SUBMODULES ThirdParty/vtkGUISupportQt)
endif()
if(OGS_BUILD_UTILS)
if(OGS_BUILD_METIS)
list(APPEND REQUIRED_SUBMODULES ThirdParty/metis)
endif()
if(OGS_BUILD_SWMM)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment