Merge topic 'UseSWIG-r-support'

9de113a9 UseSWIG: Fix R module prefix
This commit is contained in:
Brad King 2014-10-21 15:07:53 -04:00 committed by CMake Topic Stage
commit 43cb7fadb4
1 changed files with 2 additions and 0 deletions

View File

@ -272,6 +272,8 @@ macro(SWIG_ADD_MODULE name language)
if(WIN32 AND NOT CYGWIN)
set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".pyd")
endif()
elseif ("${swig_lowercase_language}" STREQUAL "r")
set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")
elseif ("${swig_lowercase_language}" STREQUAL "ruby")
# In ruby you want:
# require 'LIBRARY'