summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-21 19:07:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-10-21 19:07:53 (GMT)
commit43cb7fadb4b0c3c34478b6fc2e33b12258d1dd22 (patch)
tree37805dcff9d7138327bc090cd751a6d1da1bfd8e /Modules
parentef6ce1f87ec2ba47694c470fbf5787a9ede0644b (diff)
parent9de113a943ae273b76c1b3cb648ac051aaa87f10 (diff)
downloadCMake-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.cmake2
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'