Module: kamailio
Branch: master
Commit: 58bd1b995a1bf36eb1efebbd2e091e0dc9ca716c
URL: 
https://github.com/kamailio/kamailio/commit/58bd1b995a1bf36eb1efebbd2e091e0dc9ca716c

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2024-12-19T17:49:13Z

cmake: Fix modules suffix to .so for all OS

---

Modified: src/modules/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/58bd1b995a1bf36eb1efebbd2e091e0dc9ca716c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/58bd1b995a1bf36eb1efebbd2e091e0dc9ca716c.patch

---

diff --git a/src/modules/CMakeLists.txt b/src/modules/CMakeLists.txt
index fe13a88f537..a1b474a4502 100644
--- a/src/modules/CMakeLists.txt
+++ b/src/modules/CMakeLists.txt
@@ -65,6 +65,8 @@ function(add_module_group group_modules)
         add_subdirectory(${module_path})
         # Remove the 'lib' prefix from the module name
         set_target_properties(${module_name} PROPERTIES PREFIX "")
+        # Set suffix to .so always
+        set_target_properties(${module_name} PROPERTIES SUFFIX ".so")
 
         # Add this policy to new so we can use target_link_libraries(... 
PRIVATE
         # ...) to link against targets defined in children directories

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to