[CMake] UseSWIG and -interface flag (was: Re: CMake 2.6.1 available for download)
Brad King
brad.king at kitware.com
Mon Aug 4 15:45:53 EDT 2008
Mathieu Malaterre wrote:
> In order to support -interface, one would need to fix the MACRO in
> UseSWIG.cmake:
>
> MACRO(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile)
> GET_SOURCE_FILE_PROPERTY(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename
> ${infile} SWIG_MODULE_NAME)
> IF(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename STREQUAL "NOTFOUND")
> GET_FILENAME_COMPONENT(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename
> "${infile}" NAME_WE)
> ENDIF(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename STREQUAL "NOTFOUND")
> FOREACH(it ${SWIG_${language}_EXTRA_FILE_EXTENSION})
> SET(${outfiles} ${${outfiles}}
> "${generatedpath}/${SWIG_GET_EXTRA_OUTPUT_FILES_module_basename}.${it}")
> ENDFOREACH(it)
> ENDMACRO(SWIG_GET_EXTRA_OUTPUT_FILES)
>
>
> The name of the output module should not be based on the input
> filename... anyway a simple fix exist, so I am not submitting a bug
> report. does the useswig maintainer wants to add something ?
I don't think there is currently a maintainer. Do you have a patch for
the file?
-Brad
More information about the CMake
mailing list