summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-03 13:33:52 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-03 13:33:57 (GMT)
commit973ee6605bcbe9db18fd66032d6fc6654341ad84 (patch)
tree563942674488f2ef76633fb31cdc270b2963f06c /Modules/UseSWIG.cmake
parent8e8bf4270734bda61acc3d0ae76c529e2e8b6834 (diff)
parentb4fbf677bbbb0a2789955f3d27ff24dd3ffac714 (diff)
downloadCMake-973ee6605bcbe9db18fd66032d6fc6654341ad84.zip
CMake-973ee6605bcbe9db18fd66032d6fc6654341ad84.tar.gz
CMake-973ee6605bcbe9db18fd66032d6fc6654341ad84.tar.bz2
Merge topic 'UseSWIG-Java-enabled'
b4fbf677 UseSWIG: Fix when Java is enabled as a language Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1095
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r--Modules/UseSWIG.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 456a6bd..c8b1cd7 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -121,8 +121,10 @@ macro(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile)
endif()
foreach(it ${SWIG_${language}_EXTRA_FILE_EXTENSIONS})
- set(${outfiles} ${${outfiles}}
- "${generatedpath}/${SWIG_GET_EXTRA_OUTPUT_FILES_module_basename}${it}")
+ set(extra_file "${generatedpath}/${SWIG_GET_EXTRA_OUTPUT_FILES_module_basename}${it}")
+ list(APPEND ${outfiles} ${extra_file})
+ # Treat extra outputs as plain files regardless of language.
+ set_property(SOURCE "${extra_file}" PROPERTY LANGUAGE "")
endforeach()
endmacro()