summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-07-03 13:27:11 -0700
committerJohnathan Corgan <jcorgan@corganenterprises.com>2012-07-03 14:23:57 -0700
commit24edd7162378d8e56945562579845eeaed03ee1e (patch)
tree38e18c160dcee70f6974ca6708b3d6ca673d5d15 /cmake
parent06c325cb925555d1864d67db20490eb67402868d (diff)
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')
-rw-r--r--cmake/Modules/GrSwig.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake
index b8e7193535..d27237cf86 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