diff options
author | Josh Morman <mormjb@gmail.com> | 2020-06-11 08:14:06 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-11 08:14:06 -0400 |
commit | 3c302ef4c1655ff27c3f66a924d897a6fdd07060 (patch) | |
tree | 7d131df650acebebe3d02c23cbac140c7f5e65d9 /cmake/Modules | |
parent | 0f7369481c40f4b841de8d4f6eca825e7e7b4bda (diff) |
pybind: remove docstring dependency on entire module
When the module is used as a dependency for the docstring substitution
task, any change to any file in the module will cause the regeneration
of the bindings for the entire module and all modules that are dependent
on that one.
There is still probably a better way tie the docstring substitution into
the custom commands, per file
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/GrPybind.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/Modules/GrPybind.cmake b/cmake/Modules/GrPybind.cmake index 5486296a36..fd5c9a2511 100644 --- a/cmake/Modules/GrPybind.cmake +++ b/cmake/Modules/GrPybind.cmake @@ -20,7 +20,7 @@ if(ENABLE_DOXYGEN) "--output_dir" ${CMAKE_CURRENT_BINARY_DIR} "--filter" ${filter} COMMENT "Adding docstrings into ${name} pybind headers ..." - DEPENDS gnuradio_docstrings gnuradio-${MODULE_NAME}) + DEPENDS gnuradio_docstrings) add_custom_target(${name}_docstrings ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/docstring_status) else(ENABLE_DOXYGEN) add_custom_command( @@ -133,7 +133,7 @@ if(ENABLE_DOXYGEN) "--output_dir" ${CMAKE_CURRENT_BINARY_DIR} "--filter" ${filter} COMMENT "Adding docstrings into ${name} pybind headers ..." - DEPENDS gnuradio_docstrings gnuradio-${MODULE_NAME}) + DEPENDS gnuradio_docstrings) add_custom_target(${name}_docstrings ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/docstring_status) else(ENABLE_DOXYGEN) add_custom_command( @@ -254,7 +254,7 @@ if(ENABLE_DOXYGEN) "--output_dir" ${CMAKE_CURRENT_BINARY_DIR} "--filter" ${filter} COMMENT "Adding docstrings into ${name} pybind headers ..." - DEPENDS extracted_docstrings gnuradio-${MODULE_NAME}) + DEPENDS extracted_docstrings) add_custom_target(${name}_docstrings ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/docstring_status) else(ENABLE_DOXYGEN) add_custom_command( |