Merge topic 'UseSWIG-no-MAIN_DEPENDENCY'

b372a99a UseSWIG: Do not use MAIN_DEPENDENCY on custom commands (#15480)
This commit is contained in:
Brad King 2015-03-31 09:17:53 -04:00 committed by CMake Topic Stage
commit ed989122c3
1 changed files with 1 additions and 2 deletions

View File

@ -204,8 +204,7 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
${swig_include_dirs} ${swig_include_dirs}
-o "${swig_generated_file_fullname}" -o "${swig_generated_file_fullname}"
"${swig_source_file_fullname}" "${swig_source_file_fullname}"
MAIN_DEPENDENCY "${swig_source_file_fullname}" DEPENDS "${swig_source_file_fullname}" ${SWIG_MODULE_${name}_EXTRA_DEPS}
DEPENDS ${SWIG_MODULE_${name}_EXTRA_DEPS}
COMMENT "Swig source") COMMENT "Swig source")
set_source_files_properties("${swig_generated_file_fullname}" ${swig_extra_generated_files} set_source_files_properties("${swig_generated_file_fullname}" ${swig_extra_generated_files}
PROPERTIES GENERATED 1) PROPERTIES GENERATED 1)