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

[CMake] Set forced OGS_USE_MPI=ON at the beginning of CMake run.

This will fix an error where the correct VTK library was not found
in the first CMake run but on susequent ones.
parent 8df3818e
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ option(OGS_USE_PCH "Should pre-compiled headers be used?" ON) ...@@ -38,6 +38,9 @@ option(OGS_USE_PCH "Should pre-compiled headers be used?" ON)
option(OGS_USE_CONAN "Should Conan package manager be used?" OFF) option(OGS_USE_CONAN "Should Conan package manager be used?" OFF)
set(OGS_CONAN_BUILD "missing" CACHE STRING "Possible values: all, missing, \ set(OGS_CONAN_BUILD "missing" CACHE STRING "Possible values: all, missing, \
never or list of libs to build" ) never or list of libs to build" )
if(OGS_USE_PETSC)
set(OGS_USE_MPI ON CACHE BOOL "Use MPI" FORCE)
endif()
### CMake includes ### ### CMake includes ###
include(scripts/cmake/PreFind.cmake) include(scripts/cmake/PreFind.cmake)
...@@ -191,7 +194,6 @@ endif() ...@@ -191,7 +194,6 @@ endif()
if(OGS_USE_PETSC) if(OGS_USE_PETSC)
add_definitions(-DUSE_PETSC) add_definitions(-DUSE_PETSC)
set(OGS_USE_MPI ON CACHE BOOL "Use MPI" FORCE)
endif() endif()
# Use MPI # Use MPI
......
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