Parcourir la source

Merge topic 'UseSWIG-octave'

f39671c UseSWIG: Handle octave extensions.
Brad King il y a 12 ans
Parent
commit
fa894c3003
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      Modules/UseSWIG.cmake

+ 4 - 1
Modules/UseSWIG.cmake

@@ -203,7 +203,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");