summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-01-26 05:24:17 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2017-01-26 05:24:17 -0800
commita6323e35d0caa7fb4403aa86b222dee8919da133 (patch)
treef84f1af8ba12a1c28a2e3c6b6652c1e34e722926 /cmake/Modules
parentada49cf86f99e97cfcf190f4aa10a7965fb8c1b6 (diff)
parent034a7d4d6d37bbc3f49ed7d414378e7f18240627 (diff)
Merge branch 'maint'
Diffstat (limited to 'cmake/Modules')
-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 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")