mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
This commit is contained in:
@@ -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}" )
|
||||
|
||||
Reference in New Issue
Block a user