Commit 0378396e authored by Mathieu Malaterre's avatar Mathieu Malaterre

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.
parent 0e66141b
...@@ -69,6 +69,7 @@ ENDMACRO(SWIG_MODULE_INITIALIZE) ...@@ -69,6 +69,7 @@ ENDMACRO(SWIG_MODULE_INITIALIZE)
# #
MACRO(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile) MACRO(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile)
SET(${outfiles} "")
GET_SOURCE_FILE_PROPERTY(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename GET_SOURCE_FILE_PROPERTY(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename
${infile} SWIG_MODULE_NAME) ${infile} SWIG_MODULE_NAME)
IF(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename STREQUAL "NOTFOUND") IF(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename STREQUAL "NOTFOUND")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment