Skip to content

Commit b6f4b7f

Browse files
committed
fix issue in macos build [skip ci]
1 parent 0fb894f commit b6f4b7f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/mac_build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,8 @@ jobs:
101101
# Run the installation
102102
export CMAKE_ARGS="-DBoost_NO_BOOST_CMAKE=ON"
103103
pip install . -vv --no-build-isolation
104+
105+
- name: Test MedPython
106+
run: |
107+
python -c 'import med'
108+

Internal/MedPyExport/generate_binding/MedPython/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ elseif(APPLE)
9494
_lightgbm_static
9595
OpenMP::OpenMP_CXX
9696
)
97+
98+
set_target_properties(medpython PROPERTIES
99+
LINK_FLAGS "-undefined dynamic_lookup"
100+
)
97101
else()
98102
# --- LINUX ---
99103
if (USE_BOOST_SHARED_LIBS)

0 commit comments

Comments
 (0)