Pārlūkot izejas kodu

Merge topic 'UseSWIG-macos-csharp-suffix'

6b14de6bc5 UseSWIG: Change the library suffix to 'dylib' for C# on macOS

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7659
Brad King 3 gadi atpakaļ
vecāks
revīzija
0bbd674cdb
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      Modules/UseSWIG.cmake

+ 3 - 0
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 "")