summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-27 13:03:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-04-27 13:03:39 (GMT)
commita7d9666d5d1c9a33ae58bb1f5a95fde57b2c69cc (patch)
tree84c5638b1811463bd039bc97285b01b71429bea7 /Modules
parent6cc5bf3dfae3b5d3d294e63a9f726fd1ec963203 (diff)
parent8ed663791bdda4e726f7b3764bc75f8856724d6f (diff)
downloadCMake-a7d9666d5d1c9a33ae58bb1f5a95fde57b2c69cc.zip
CMake-a7d9666d5d1c9a33ae58bb1f5a95fde57b2c69cc.tar.gz
CMake-a7d9666d5d1c9a33ae58bb1f5a95fde57b2c69cc.tar.bz2
Merge topic 'UseSWIG-fallback-prefix'
8ed66379 UseSWIG: Fall back to empty PREFIX for unknown languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !767
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index 277f4ca..bfe1a6f 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -326,6 +326,9 @@ macro(SWIG_ADD_LIBRARY name)
if (APPLE)
set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".bundle")
endif ()
+ else()
+ # assume empty prefix because we expect the module to be dynamically loaded
+ set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")
endif ()
endmacro()