summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/gengen/CMakeLists.txt5
-rw-r--r--gnuradio-core/src/lib/swig/CMakeLists.txt2
2 files changed, 5 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/gengen/CMakeLists.txt b/gnuradio-core/src/lib/gengen/CMakeLists.txt
index a188dae0e..e3da278f2 100644
--- a/gnuradio-core/src/lib/gengen/CMakeLists.txt
+++ b/gnuradio-core/src/lib/gengen/CMakeLists.txt
@@ -113,7 +113,6 @@ expand_h_cc_i(gr_peak_detector_XX fb ib sb)
add_custom_target(gengen_generated DEPENDS
${generated_gengen_includes}
${generated_gengen_swigs}
- ${CMAKE_CURRENT_BINARY_DIR}/gengen_generated.i
)
########################################################################
@@ -148,6 +147,10 @@ add_custom_command(
${generated_gengen_swigs}
)
+add_custom_target(gengen_generated_index DEPENDS
+ ${CMAKE_CURRENT_BINARY_DIR}/gengen_generated.i
+)
+
########################################################################
# Handle the generated sources + a few non-generated ones
########################################################################
diff --git a/gnuradio-core/src/lib/swig/CMakeLists.txt b/gnuradio-core/src/lib/swig/CMakeLists.txt
index ef0772944..73a6f92ff 100644
--- a/gnuradio-core/src/lib/swig/CMakeLists.txt
+++ b/gnuradio-core/src/lib/swig/CMakeLists.txt
@@ -43,7 +43,7 @@ set(GR_SWIG_LIBRARIES gnuradio-core)
# X86_64, g++'s resident set size was 650MB!
# ----------------------------------------------------------------
-set(GR_SWIG_TARGET_DEPS gengen_generated filter_generated)
+set(GR_SWIG_TARGET_DEPS gengen_generated gengen_generated_index filter_generated)
GR_SWIG_MAKE(gnuradio_core_runtime gnuradio_core_runtime.i)
GR_SWIG_MAKE(gnuradio_core_general gnuradio_core_general.i)