diff options
author | Josh Blum | 2012-07-03 13:27:11 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-07-03 14:23:57 -0700 |
commit | 24edd7162378d8e56945562579845eeaed03ee1e (patch) | |
tree | 38e18c160dcee70f6974ca6708b3d6ca673d5d15 /cmake/Modules | |
parent | 06c325cb925555d1864d67db20490eb67402868d (diff) | |
download | gnuradio-24edd7162378d8e56945562579845eeaed03ee1e.tar.gz gnuradio-24edd7162378d8e56945562579845eeaed03ee1e.tar.bz2 gnuradio-24edd7162378d8e56945562579845eeaed03ee1e.zip |
swig: use add_custom_target for swig docs dependency
This seems to fix the build dependency issue where generation gets called multiple times and steps on itself.
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/GrSwig.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake index b8e719353..d27237cf8 100644 --- a/cmake/Modules/GrSwig.cmake +++ b/cmake/Modules/GrSwig.cmake @@ -110,7 +110,8 @@ macro(GR_SWIG_MAKE name) set(GR_SWIG_DOCS_SOURCE_DEPS ${GR_SWIG_SOURCE_DEPS}) set(GR_SWIG_DOCS_TAREGT_DEPS ${GR_SWIG_TARGET_DEPS}) GR_SWIG_MAKE_DOCS(${GR_SWIG_DOC_FILE} ${GR_SWIG_DOC_DIRS}) - list(APPEND GR_SWIG_SOURCE_DEPS ${GR_SWIG_DOC_FILE}) + add_custom_target(${name}_swig_doc DEPENDS ${GR_SWIG_DOC_FILE}) + list(APPEND GR_SWIG_TARGET_DEPS ${name}_swig_doc) endif() #append additional include directories |