From fc579c45bd916b0dc9250e132240bd318b5b0fd8 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Fri, 21 Oct 2022 09:06:13 +0200 Subject: [PATCH] [cmake] Fixed mac petsc build. --- ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt b/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt index eac165877cf..674576996a7 100644 --- a/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt +++ b/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt @@ -47,7 +47,7 @@ target_link_libraries( $<IF:$<BOOL:${OGS_BUILD_WHEEL}>,pybind11::module,pybind11::embed> ) -if(OGS_BUILD_WHEEL) +if(OGS_BUILD_WHEEL OR (APPLE AND OGS_USE_PETSC)) target_link_options( ProcessLibBoundaryConditionAndSourceTermPython PUBLIC $<$<CXX_COMPILER_ID:AppleClang>:-undefined dynamic_lookup> -- GitLab