diff options
author | Brad King <brad.king@kitware.com> | 2017-04-27 13:03:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-04-27 13:03:39 (GMT) |
commit | a7d9666d5d1c9a33ae58bb1f5a95fde57b2c69cc (patch) | |
tree | 84c5638b1811463bd039bc97285b01b71429bea7 /Modules | |
parent | 6cc5bf3dfae3b5d3d294e63a9f726fd1ec963203 (diff) | |
parent | 8ed663791bdda4e726f7b3764bc75f8856724d6f (diff) | |
download | CMake-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.cmake | 3 |
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() |