mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 09:08:58 -05:00
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
This commit is contained in:
@@ -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 "")
|
||||
|
||||
Reference in New Issue
Block a user