From 9de113a943ae273b76c1b3cb648ac051aaa87f10 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Tue, 14 Oct 2014 14:09:53 +0200 Subject: [PATCH] UseSWIG: Fix R module prefix --- Modules/UseSWIG.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 31ab48d5b..bab1b2126 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'