From 15bd1260c78906a35f5e314abcb23f8df679b553 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Thu, 27 Jun 2024 11:46:31 +0200 Subject: [PATCH] [cmake] Another build fix for conda on mac. --- .../BoundaryConditionAndSourceTerm/Python/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt b/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt index 25dd3dafb13..cbbdf0142a1 100644 --- a/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt +++ b/ProcessLib/BoundaryConditionAndSourceTerm/Python/CMakeLists.txt @@ -47,10 +47,10 @@ target_link_libraries( $,pybind11::module,pybind11::embed> ) -if(OGS_BUILD_WHEEL OR (APPLE AND OGS_USE_PETSC)) +if(BUILD_SHARED_LIBS AND (MSVC OR APPLE)) target_link_options( ProcessLibBoundaryConditionAndSourceTermPython PRIVATE - $<$:-undefined dynamic_lookup> + $<$:-undefined dynamic_lookup> $<$:/FORCE:UNRESOLVED> ) endif()