diff options
author | Julien Schueller <schueller@phimeca.com> | 2014-10-14 12:09:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-10-14 13:41:58 (GMT) |
commit | 9de113a943ae273b76c1b3cb648ac051aaa87f10 (patch) | |
tree | 307062485842a71e8e04bea1c275d357e42d54ab /Modules/UseSWIG.cmake | |
parent | 54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff) | |
download | CMake-9de113a943ae273b76c1b3cb648ac051aaa87f10.zip CMake-9de113a943ae273b76c1b3cb648ac051aaa87f10.tar.gz CMake-9de113a943ae273b76c1b3cb648ac051aaa87f10.tar.bz2 |
UseSWIG: Fix R module prefix
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 31ab48d..bab1b21 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -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' |