Module: kamailio
Branch: master
Commit: 8728cb4de4ba27287b1f43f9d96179ff4df08b84
URL: 
https://github.com/kamailio/kamailio/commit/8728cb4de4ba27287b1f43f9d96179ff4df08b84

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2025-08-18T09:43:21Z

cmake: Fix FMSTATS and KMSTATS compile defs

- Removed relevant unnessecary option

---

Modified: cmake/defs.cmake

---

Diff:  
https://github.com/kamailio/kamailio/commit/8728cb4de4ba27287b1f43f9d96179ff4df08b84.diff
Patch: 
https://github.com/kamailio/kamailio/commit/8728cb4de4ba27287b1f43f9d96179ff4df08b84.patch

---

diff --git a/cmake/defs.cmake b/cmake/defs.cmake
index 637738abf9b..bfa6cd1a3b5 100644
--- a/cmake/defs.cmake
+++ b/cmake/defs.cmake
@@ -87,14 +87,12 @@ option(Q_MALLOC "Use q_malloc" ON)
 # Same goes for fmalloc and tlsf malloc
 # cmake_dependent_option(DBG_QM_MALLOC "Enable debugging info for q_malloc" 
OFF "Q_MALLOC" OFF)
 option(TLSF_MALLOC "Use tlsf_malloc" ON)
-option(MALLOC_STATS "Use malloc stats" ON)
 
 option(USE_DNS_FAILOVER "Use DNS failover" ON)
 option(USE_DST_BLOCKLIST "Use destination blacklist" ON)
 option(HAVE_RESOLV_RES "Have resolv_res" ON)
 
 option(KSR_PTHREAD_MUTEX_SHARED "Use shared mutex for TLS" ON)
-option(STATISTICS "Statistics" ON)
 
 # if(${MEMPKG})
 #   target_compile_definitions(common INTERFACE PKG_MALLOC)
@@ -241,10 +239,6 @@ if(TLSF_MALLOC)
   target_compile_definitions(common INTERFACE TLSF_MALLOC)
 endif()
 
-if(MALLOC_STATS)
-  target_compile_definitions(common INTERFACE MALLOC_STATS)
-endif()
-
 if(MEMDBG)
   target_compile_definitions(common INTERFACE DBG_SR_MEMORY)
   if(MEMDBGSYS)
@@ -313,11 +307,11 @@ if(KSR_PTHREAD_MUTEX_SHARED)
 endif()
 
 if(FMSTATS)
-  target_compile_definitions(common INTERFACE FMSTATS)
+  target_compile_definitions(common INTERFACE MALLOC_STATS)
 endif()
 
 if(KMSTATS)
-  target_compile_definitions(common INTERFACE KMSTATS)
+  target_compile_definitions(common INTERFACE USE_CORE_STATS STATISTICS)
 endif()
 
 include(${CMAKE_SOURCE_DIR}/cmake/compiler-specific.cmake)
@@ -369,7 +363,6 @@ target_compile_definitions(
             # TODO: We can use the generator expression to define extra flags
             # instead of checking the options each time
             $<$<BOOL:${USE_SCTP}>:USE_SCTP>
-            $<$<BOOL:${STATISTICS}>:STATISTICS>
 )
 target_link_libraries(common INTERFACE common_compiler_flags)
 

_______________________________________________
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