summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2011-03-28 16:27:47 (GMT)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2011-04-08 13:17:33 (GMT)
commit0378396e68c39b27e3aebbf4268074f6d936fa6e (patch)
treebcc49c9ccf923329904cf6774c58edc2b40e0012 /Modules/UseSWIG.cmake
parent0e66141bea25a93a5ef42c39d5c3a0b6612c1fe6 (diff)
downloadCMake-0378396e68c39b27e3aebbf4268074f6d936fa6e.zip
CMake-0378396e68c39b27e3aebbf4268074f6d936fa6e.tar.gz
CMake-0378396e68c39b27e3aebbf4268074f6d936fa6e.tar.bz2
UseSWIG.cmake did not support multiple modules and parallel builds
This commit fixes BUG: 0011782. UseSWIG would be using the same variable to declare module information. The problem would only be noticed in parallel builds Fix this variable declaration by properly resetting it.
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r--Modules/UseSWIG.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index b547dc7..76d03d1 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -69,6 +69,7 @@ ENDMACRO(SWIG_MODULE_INITIALIZE)
#
MACRO(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile)
+ SET(${outfiles} "")
GET_SOURCE_FILE_PROPERTY(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename
${infile} SWIG_MODULE_NAME)
IF(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename STREQUAL "NOTFOUND")