summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-30 14:32:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-30 14:32:01 (GMT)
commitb39929ab42f3b6204a9689846cbc24c96ee50349 (patch)
treeb0eb055d101cd11d9d46afe0e12ee00b9b026455 /Modules
parente2f72ebdbeb3bf1318aaedbf2e024c8431f3e635 (diff)
parent32a2f41402d38e1c5be3547bd042328df0b28124 (diff)
downloadCMake-b39929ab42f3b6204a9689846cbc24c96ee50349.zip
CMake-b39929ab42f3b6204a9689846cbc24c96ee50349.tar.gz
CMake-b39929ab42f3b6204a9689846cbc24c96ee50349.tar.bz2
Merge topic 'revert-CMP0057'
32a2f414 Revert "add_custom_command: Diagnose MAIN_DEPENDENCY limitation."
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 1862876..96b0b35 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -204,7 +204,8 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
${swig_include_dirs}
-o "${swig_generated_file_fullname}"
"${swig_source_file_fullname}"
- DEPENDS "${swig_source_file_fullname}" ${SWIG_MODULE_${name}_EXTRA_DEPS}
+ MAIN_DEPENDENCY "${swig_source_file_fullname}"
+ DEPENDS ${SWIG_MODULE_${name}_EXTRA_DEPS}
COMMENT "Swig source")
set_source_files_properties("${swig_generated_file_fullname}" ${swig_extra_generated_files}
PROPERTIES GENERATED 1)