diff options
author | Julien Schueller <schueller@phimeca.com> | 2013-11-29 09:13:27 (GMT) |
---|---|---|
committer | Julien Schueller <schueller@phimeca.com> | 2013-11-29 09:13:27 (GMT) |
commit | f39671c117cfaec29dc81fd44adec2655a17077d (patch) | |
tree | d019b02e1ac83b3832be22c5585838d6a27615b2 /Modules | |
parent | f0b3502a6586478ef624419e4007e5f5652da2f0 (diff) | |
download | CMake-f39671c117cfaec29dc81fd44adec2655a17077d.zip CMake-f39671c117cfaec29dc81fd44adec2655a17077d.tar.gz CMake-f39671c117cfaec29dc81fd44adec2655a17077d.tar.bz2 |
UseSWIG: Handle octave extensions.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/UseSWIG.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 28d5ff0..5781e50 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -200,7 +200,10 @@ macro(SWIG_ADD_MODULE name language) ${swig_generated_sources} ${swig_other_sources}) string(TOLOWER "${language}" swig_lowercase_language) - if ("${swig_lowercase_language}" STREQUAL "java") + if ("${swig_lowercase_language}" STREQUAL "octave") + set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "") + set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".oct") + elseif ("${swig_lowercase_language}" STREQUAL "java") if (APPLE) # In java you want: # System.loadLibrary("LIBRARY"); |