Module: kamailio
Branch: master
Commit: 758af7cf202d3545bf2e68019dfadb0ea56219a3
URL: 
https://github.com/kamailio/kamailio/commit/758af7cf202d3545bf2e68019dfadb0ea56219a3

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2025-08-20T16:07:27Z

cmake: Fix elseif() without conditions

---

Modified: cmake/os-specific.cmake
Modified: utils/kamcmd/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/758af7cf202d3545bf2e68019dfadb0ea56219a3.diff
Patch: 
https://github.com/kamailio/kamailio/commit/758af7cf202d3545bf2e68019dfadb0ea56219a3.patch

---

diff --git a/cmake/os-specific.cmake b/cmake/os-specific.cmake
index 4375510feeb..5222f6c7fd5 100644
--- a/cmake/os-specific.cmake
+++ b/cmake/os-specific.cmake
@@ -13,6 +13,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
   # FreeBSD specific flags
   include(${OS_SPECIFIC_DIR}/freebsd.cmake)
-elseif()
+else()
   message(FATAL_ERROR "Unsupported system: ${CMAKE_SYSTEM_NAME}")
 endif()
diff --git a/utils/kamcmd/CMakeLists.txt b/utils/kamcmd/CMakeLists.txt
index b7d8df69ecf..d6efb555de0 100644
--- a/utils/kamcmd/CMakeLists.txt
+++ b/utils/kamcmd/CMakeLists.txt
@@ -8,7 +8,7 @@ set(KAMCMD_CUSTOM_NAME
 
 if(NOT KAMCMD_CUSTOM_NAME)
   set(NAME "kamcmd") # Hardcoded name if empty
-elseif()
+else()
   set(NAME "${KAMCMD_CUSTOM_NAME}")
 endif()
 

_______________________________________________
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