summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-11 14:58:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-11 14:58:52 (GMT)
commit9a670222758bff23645df36a5cb9d98cb1bafa8e (patch)
treed8140f377ab957ac0aeb2a15ed20e322b3ad9c94 /Modules
parentbc2cc80255c64bc2b2fa4c9dbb54f5cd90150982 (diff)
parentb8968b4b3984b425497324c302948a197b2badbd (diff)
downloadCMake-9a670222758bff23645df36a5cb9d98cb1bafa8e.zip
CMake-9a670222758bff23645df36a5cb9d98cb1bafa8e.tar.gz
CMake-9a670222758bff23645df36a5cb9d98cb1bafa8e.tar.bz2
Merge topic 'UseSWIG-implicit-depends'
b8968b4b UseSWIG: Automatically scan dependencies of SWIG files for Makefiles
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 651f9f1..ffb72a0 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -212,6 +212,7 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
"${swig_source_file_fullname}"
MAIN_DEPENDENCY "${swig_source_file_fullname}"
DEPENDS ${SWIG_MODULE_${name}_EXTRA_DEPS}
+ IMPLICIT_DEPENDS CXX "${swig_source_file_fullname}"
COMMENT "Swig source")
set_source_files_properties("${swig_generated_file_fullname}" ${swig_extra_generated_files}
PROPERTIES GENERATED 1)