diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-04 20:13:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-04 20:13:41 (GMT) |
commit | 0e62c76f5b6784b9b20f75234377ab39cb4e585f (patch) | |
tree | 8cbdf6ee0e4829bee0aff440a7dd07d27089ed6d /Modules/UseSWIG.cmake | |
parent | 525a2160a65a2c72d8506521cbd072995aa12a52 (diff) | |
download | CMake-0e62c76f5b6784b9b20f75234377ab39cb4e585f.zip CMake-0e62c76f5b6784b9b20f75234377ab39cb4e585f.tar.gz CMake-0e62c76f5b6784b9b20f75234377ab39cb4e585f.tar.bz2 |
ENH: fix for bug 1304
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 54ffdde..0f77f6d 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -168,8 +168,9 @@ MACRO(SWIG_ADD_MODULE name language) SWIG_ADD_SOURCE_TO_MODULE(${name} swig_generated_source ${it}) SET(swig_generated_sources ${swig_generated_sources} "${swig_generated_source}") ENDFOREACH(it) + GET_DIRECTORY_PROPERTY(swig_extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES) SET_DIRECTORY_PROPERTIES(PROPERTIES - ADDITIONAL_MAKE_CLEAN_FILES "${ADDITIONAL_MAKE_CLEAN_FILES};${swig_generated_sources}") + ADDITIONAL_MAKE_CLEAN_FILES "${swig_extra_clean_files};${swig_generated_sources}") ADD_LIBRARY(${SWIG_MODULE_${name}_REAL_NAME} MODULE ${swig_generated_sources} |