diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2013-08-26 16:48:44 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2013-08-26 16:48:44 -0700 |
commit | 05d9e9e7cc0aa37f15f5fa64c6ac343e1d4ae7e9 (patch) | |
tree | 89d37455f9add25bdcd0834ea9034cb8420a4e41 /cmake | |
parent | 76d2cd1ffe81f0d42c57b49c1669c3f2bdea49bb (diff) |
runtime: Fixed runtime SWIG linker error
* gnuradio_runtime_EXPORTS is not defined for SWIG builds by default, so this fix manually sets it for the runtime_swig build
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrSwig.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake index f907a5149a..68c4f0a58a 100644 --- a/cmake/Modules/GrSwig.cmake +++ b/cmake/Modules/GrSwig.cmake @@ -172,6 +172,9 @@ macro(GR_SWIG_MAKE name) include(UseSWIG) SWIG_ADD_MODULE(${name} python ${ifiles}) SWIG_LINK_LIBRARIES(${name} ${PYTHON_LIBRARIES} ${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") endmacro(GR_SWIG_MAKE) |