summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python
diff options
context:
space:
mode:
authorRyan Volz <ryan.volz@gmail.com>2021-05-14 15:10:06 -0400
committermormj <34754695+mormj@users.noreply.github.com>2021-06-01 07:43:04 -0400
commitd113567bb248badf726622f60d485c7e5a421497 (patch)
tree031f0858c7759a0c0e5c5def30151b2d787dc585 /gnuradio-runtime/python
parenteac195620858b4312d1fcd4a783f17a07bc85ee3 (diff)
runtime: ctrlport: cmake: Add target for thrift python bindings.
Without a target, the Python bindings are not built (i.e. the custom command is not run) until they are needed, during install. By adding a target, they will be generated during the build step. Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
Diffstat (limited to 'gnuradio-runtime/python')
-rw-r--r--gnuradio-runtime/python/gnuradio/ctrlport/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/CMakeLists.txt b/gnuradio-runtime/python/gnuradio/ctrlport/CMakeLists.txt
index 25c715cce6..0f4a86dc99 100644
--- a/gnuradio-runtime/python/gnuradio/ctrlport/CMakeLists.txt
+++ b/gnuradio-runtime/python/gnuradio/ctrlport/CMakeLists.txt
@@ -51,6 +51,10 @@ if(THRIFT_FOUND)
COMMAND ${THRIFT_BIN} --gen py -out ${CMAKE_CURRENT_BINARY_DIR}/ ${CMAKE_SOURCE_DIR}/gnuradio-runtime/lib/controlport/thrift/gnuradio.thrift
)
+ add_custom_target(ctrlport_thrift_python ALL
+ DEPENDS ${thrift_targets}
+ )
+
GR_PYTHON_INSTALL(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/RPCConnectionThrift.py