Skip to content

Instantly share code, notes, and snippets.

@iMichka
Last active February 6, 2020 23:08
Show Gist options
  • Select an option

  • Save iMichka/a4cef40bc7410241bc935df7ea6ef6dd to your computer and use it in GitHub Desktop.

Select an option

Save iMichka/a4cef40bc7410241bc935df7ea6ef6dd to your computer and use it in GitHub Desktop.
gnuradio
diff -Naur gnuradio-3.8.0.0/cmake/Modules/GrSwig.cmake gnuradio-3.8.0.0_new/cmake/Modules/GrSwig.cmake
--- gnuradio-3.8.0.0/cmake/Modules/GrSwig.cmake 2019-08-09 23:40:34.000000000 +0200
+++ gnuradio-3.8.0.0_new/cmake/Modules/GrSwig.cmake 2020-02-07 00:07:37.000000000 +0100
@@ -137,6 +137,9 @@
set_target_properties(${name} PROPERTIES
SWIG_USE_TARGET_INCLUDE_DIRECTORIES TRUE
)
+ if(APPLE)
+ SET_TARGET_PROPERTIES(${name} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+ endif(APPLE)
target_include_directories(${name} PUBLIC ${GR_SWIG_INCLUDE_DIRS})
set_property(TARGET ${name} PROPERTY SWIG_DEPENDS ${GR_SWIG_TARGET_DEPS})
target_link_libraries(${name} Python::Python ${GR_SWIG_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment