Module: kamailio
Branch: master
Commit: 2dbd3d47cdbd55365fcb37b48a30c3224b8af810
URL: 
https://github.com/kamailio/kamailio/commit/2dbd3d47cdbd55365fcb37b48a30c3224b8af810

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2025-01-23T10:05:21Z

cmake: Link with correct Erlang target

---

Modified: src/modules/erlang/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/2dbd3d47cdbd55365fcb37b48a30c3224b8af810.diff
Patch: 
https://github.com/kamailio/kamailio/commit/2dbd3d47cdbd55365fcb37b48a30c3224b8af810.patch

---

diff --git a/src/modules/erlang/CMakeLists.txt 
b/src/modules/erlang/CMakeLists.txt
index 16c4be64bfd..db92655b497 100644
--- a/src/modules/erlang/CMakeLists.txt
+++ b/src/modules/erlang/CMakeLists.txt
@@ -5,4 +5,6 @@ add_library(${module_name} SHARED ${MODULE_SOURCES})
 # erlang-dev
 find_package(Erlang REQUIRED)
 
-target_link_libraries(${module_name} PRIVATE Erlang::EI)
+target_link_libraries(${module_name} PRIVATE Erlang::Erlang)
+target_include_directories(${module_name} PRIVATE ${Erlang_INCLUDE_DIRS})
+target_compile_definitions(${module_name} PRIVATE _REENTRANT)

_______________________________________________
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