summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 20:56:34 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 20:56:34 (GMT)
commit3031467e33e61d9e7daa3357ee5f6b31c233e7fd (patch)
tree971ff1363cd96f5821c1c59bd633801134578c58 /Modules/UseSWIG.cmake
parent17d6f9e17062d0ddf392823ba51e92f31ebdf7d5 (diff)
downloadCMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.zip
CMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.tar.gz
CMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.tar.bz2
ENH: Implement additional make clean files as a directory property instead of cmake variable
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r--Modules/UseSWIG.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 2f9af54..6a0f8bf 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -146,7 +146,8 @@ 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)
- SET(ADDITIONAL_MAKE_CLEAN_FILES ${ADDITIONAL_MAKE_CLEAN_FILES} ${swig_generated_sources})
+ SET_DIRECTORY_PROPERTIES(PROPERTIES
+ ADDITIONAL_MAKE_CLEAN_FILES "${ADDITIONAL_MAKE_CLEAN_FILES};${swig_generated_sources}")
ADD_LIBRARY(${SWIG_MODULE_${name}_REAL_NAME}
MODULE
${swig_generated_sources}