diff options
author | Brad King <brad.king@kitware.com> | 2022-09-26 13:36:23 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-09-26 13:36:32 (GMT) |
commit | 0bbd674cdbf7b1c708b46ceb210cc5963729c263 (patch) | |
tree | 4de372093e4a54cc2120a77c462eddfee3bf0bdd | |
parent | 5838093985ac96648cacb4a3b8f5190b5c884d0b (diff) | |
parent | 6b14de6bc55ddc3c6883276153720d8ccc656d85 (diff) | |
download | CMake-0bbd674cdbf7b1c708b46ceb210cc5963729c263.zip CMake-0bbd674cdbf7b1c708b46ceb210cc5963729c263.tar.gz CMake-0bbd674cdbf7b1c708b46ceb210cc5963729c263.tar.bz2 |
Merge topic 'UseSWIG-macos-csharp-suffix'
6b14de6bc5 UseSWIG: Change the library suffix to 'dylib' for C# on macOS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7659
-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 5b653ad..fd6596b 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -990,6 +990,9 @@ function(SWIG_ADD_LIBRARY name) endif() set_target_properties (${target_name} PROPERTIES PREFIX "") endif() + if (APPLE) + set_target_properties (${target_name} PROPERTIES SUFFIX ".dylib") + endif () else() # assume empty prefix because we expect the module to be dynamically loaded set_target_properties (${target_name} PROPERTIES PREFIX "") |