Merge topic 'UseSWIG-no-MAIN_DEPENDENCY'
b372a99a
UseSWIG: Do not use MAIN_DEPENDENCY on custom commands (#15480)
This commit is contained in:
commit
ed989122c3
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue