diff options
author | Brad King <brad.king@kitware.com> | 2013-12-02 17:07:03 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-12-02 17:07:03 (GMT) |
commit | fa894c30037a5de1ce5037bfa1b418d53249b4c8 (patch) | |
tree | b03f16611ea4ba0505074c5ef971b06f1b03f278 /Modules/UseSWIG.cmake | |
parent | f3a10191e714e39965c43b704ac17024968bbf31 (diff) | |
parent | f39671c117cfaec29dc81fd44adec2655a17077d (diff) | |
download | CMake-fa894c30037a5de1ce5037bfa1b418d53249b4c8.zip CMake-fa894c30037a5de1ce5037bfa1b418d53249b4c8.tar.gz CMake-fa894c30037a5de1ce5037bfa1b418d53249b4c8.tar.bz2 |
Merge topic 'UseSWIG-octave'
f39671c UseSWIG: Handle octave extensions.
Diffstat (limited to 'Modules/UseSWIG.cmake')
-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 84aa741..67cab4a 100644 --- a/Modules/UseSWIG.cmake +++ b/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"); |