summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@google.com>2016-12-21 01:53:41 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-10 18:05:59 (GMT)
commitb8968b4b3984b425497324c302948a197b2badbd (patch)
treeb023c600310296f87523e3b715d4d8f8823913bc /Modules/UseSWIG.cmake
parent4918cd8c98938ab245d7fea74ba6e20f3ec8ef8b (diff)
downloadCMake-b8968b4b3984b425497324c302948a197b2badbd.zip
CMake-b8968b4b3984b425497324c302948a197b2badbd.tar.gz
CMake-b8968b4b3984b425497324c302948a197b2badbd.tar.bz2
UseSWIG: Automatically scan dependencies of SWIG files for Makefiles
Issue: #4147
Diffstat (limited to 'Modules/UseSWIG.cmake')
-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)