diff --git a/scripts/cmake/ConanSetup.cmake b/scripts/cmake/ConanSetup.cmake index 92d7fdc8ae93dce358ce6ad2d8714d101279123e..7b4241a44b95040f54801c326d7d33b3bcb8c251 100644 --- a/scripts/cmake/ConanSetup.cmake +++ b/scripts/cmake/ConanSetup.cmake @@ -40,6 +40,9 @@ endif() if(OGS_USE_PETSC) set(CONAN_REQUIRES ${CONAN_REQUIRES} petsc/3.8.3@bilke/testing) + if(OGS_CONAN_USE_SYSTEM_OPENMPI) + set(CONAN_OPTIONS ${CONAN_OPTIONS} petsc:skip_install_openmpi=True) + endif() endif() if(OGS_USE_LIS)