summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-12 13:58:44 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-12 14:00:41 (GMT)
commit3dd046a84b3fae99a36b7f7680310344b986b5a9 (patch)
tree879f010111ec549d25ee05c4b293b3bdd028827e /Modules
parent1f3221f365f269f3356de0ad0112cf68e4831fe6 (diff)
parent156138d5f1d15a79f86db64bbe2dd6043fd3b43f (diff)
downloadCMake-3dd046a84b3fae99a36b7f7680310344b986b5a9.zip
CMake-3dd046a84b3fae99a36b7f7680310344b986b5a9.tar.gz
CMake-3dd046a84b3fae99a36b7f7680310344b986b5a9.tar.bz2
Merge branch 'UseSWIG-handle-SWIG_MODULE_NAME' into release-3.12
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}" )