Explorar el Código

Merge topic 'UseSWIG-handle-SWIG_MODULE_NAME'

156138d5f1 UseSWIG: Fix handling of `SWIG_MODULE_NAME` source file property

Acked-by: Kitware Robot <[email protected]>
Merge-request: !2145
Brad King hace 7 años
padre
commit
3b7da49d55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Modules/UseSWIG.cmake

+ 1 - 1
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}" )