diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2018-01-29 08:46:51 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2018-02-14 07:35:04 (GMT) |
commit | d6048bd153979c268a2943b26fd71be7c5f11251 (patch) | |
tree | b45637ba609ca2e429249c7baa084a6839fde99b /Modules/UseSWIG.cmake | |
parent | d870148537319da2e86237cbd8baf6815975e594 (diff) | |
download | CMake-d6048bd153979c268a2943b26fd71be7c5f11251.zip CMake-d6048bd153979c268a2943b26fd71be7c5f11251.tar.gz CMake-d6048bd153979c268a2943b26fd71be7c5f11251.tar.bz2 |
UseSWIG: Re-work test framework
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 959893f..cc30669 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -378,6 +378,12 @@ macro(SWIG_ADD_LIBRARY name) if (APPLE) set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".bundle") endif () + elseif ("${swig_lowercase_language}" STREQUAL "perl") + # assume empty prefix because we expect the module to be dynamically loaded + set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "") + if (APPLE) + set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".dylib") + endif () else() # assume empty prefix because we expect the module to be dynamically loaded set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "") |