summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-01-26 05:24:41 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2017-01-26 05:24:41 -0800
commitd2db181f67823c7fd60b3ac5d0e47a6cccd7fbc0 (patch)
treec91a882b078483e050e9f72d52fbde31f1c43df0 /cmake
parenta4964a05c6f341ca23fd527712965ff8d173c1a3 (diff)
parenta6323e35d0caa7fb4403aa86b222dee8919da133 (diff)
Merge branch 'master' into next
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/GrSwig.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake
index 400cde295d..c8d4eb466e 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")