diff options
author | Brad King <brad.king@kitware.com> | 2014-10-21 19:07:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-10-21 19:07:53 (GMT) |
commit | 43cb7fadb4b0c3c34478b6fc2e33b12258d1dd22 (patch) | |
tree | 37805dcff9d7138327bc090cd751a6d1da1bfd8e /Modules | |
parent | ef6ce1f87ec2ba47694c470fbf5787a9ede0644b (diff) | |
parent | 9de113a943ae273b76c1b3cb648ac051aaa87f10 (diff) | |
download | CMake-43cb7fadb4b0c3c34478b6fc2e33b12258d1dd22.zip CMake-43cb7fadb4b0c3c34478b6fc2e33b12258d1dd22.tar.gz CMake-43cb7fadb4b0c3c34478b6fc2e33b12258d1dd22.tar.bz2 |
Merge topic 'UseSWIG-r-support'
9de113a9 UseSWIG: Fix R module prefix
Diffstat (limited to 'Modules')
-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' |