summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-13 14:46:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-06-13 14:47:06 (GMT)
commit3b7da49d55691eeb9177ab25b047440decaed77a (patch)
tree77b4f6c9ed7261b954f69005e8a413225c7a3a72 /Modules
parent49c30fc65c7f93f15d9368112b659f43c387eb1e (diff)
parent156138d5f1d15a79f86db64bbe2dd6043fd3b43f (diff)
downloadCMake-3b7da49d55691eeb9177ab25b047440decaed77a.zip
CMake-3b7da49d55691eeb9177ab25b047440decaed77a.tar.gz
CMake-3b7da49d55691eeb9177ab25b047440decaed77a.tar.bz2
Merge topic 'UseSWIG-handle-SWIG_MODULE_NAME'
156138d5f1 UseSWIG: Fix handling of `SWIG_MODULE_NAME` source file property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2145
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 8713cd8..1f36308 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -237,7 +237,7 @@ function(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile)
set(files)
get_source_file_property(module_basename
"${infile}" SWIG_MODULE_NAME)
- if(NOT swig_module_basename)
+ if(NOT module_basename)
# try to get module name from "%module foo" syntax
if ( EXISTS "${infile}" )