diff options
author | kolen <incredible.angst@gmail.com> | 2016-12-15 21:29:41 +0300 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2017-01-26 05:05:27 -0800 |
commit | a53e32eef5d6461976014d593085681f405831b7 (patch) | |
tree | ab70ba9f678c7a3bfc84270fdb715d2ed9bb9159 /cmake | |
parent | eaf69fc226db9526e5cc4dfce59abef34283eeca (diff) |
Use -undefined dynamic_lookup linkage for python on macos
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrSwig.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake index ef3a76eb4c..8ff2793275 100644 --- a/cmake/Modules/GrSwig.cmake +++ b/cmake/Modules/GrSwig.cmake @@ -190,7 +190,12 @@ macro(GR_SWIG_MAKE name) #setup the actual swig library target to be built include(UseSWIG) SWIG_ADD_MODULE(${name} python ${ifiles}) - SWIG_LINK_LIBRARIES(${name} ${PYTHON_LIBRARIES} ${GR_SWIG_LIBRARIES}) + if(APPLE) + set(PYTHON_LINK_OPTIONS "-undefined dynamic_lookup") + else() + set(PYTHON_LINK_OPTIONS ${PYTHON_LIBRARIES}) + endif(APPLE) + SWIG_LINK_LIBRARIES(${name} ${PYTHON_LINK_OPTIONS} ${GR_SWIG_LIBRARIES}) if(${name} STREQUAL "runtime_swig") SET_TARGET_PROPERTIES(${SWIG_MODULE_runtime_swig_REAL_NAME} PROPERTIES DEFINE_SYMBOL "gnuradio_runtime_EXPORTS") endif(${name} STREQUAL "runtime_swig") |