Module: kamailio
Branch: master
Commit: ada0a4c24700c3eead0217dd1e9794aee9655347
URL:
https://github.com/kamailio/kamailio/commit/ada0a4c24700c3eead0217dd1e9794a…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Committer: Xenofon Karamanos <xk(a)gilawa.com>
Date: 2025-01-07T13:46:48Z
cmake/kamcmd: Link if found
---
Modified: utils/kamcmd/CMakeLists.txt
---
Diff:
https://github.com/kamailio/kamailio/commit/ada0a4c24700c3eead0217dd1e9794a…
Patch:
https://github.com/kamailio/kamailio/commit/ada0a4c24700c3eead0217dd1e9794a…
---
diff --git a/utils/kamcmd/CMakeLists.txt b/utils/kamcmd/CMakeLists.txt
index e61e9327c24..cb3fa5bcb37 100644
--- a/utils/kamcmd/CMakeLists.txt
+++ b/utils/kamcmd/CMakeLists.txt
@@ -16,11 +16,11 @@ add_executable(${NAME})
# detect libreadline
find_package(PkgConfig REQUIRED)
pkg_check_modules(READLINE IMPORTED_TARGET readline)
-add_library(readline::readline ALIAS PkgConfig::READLINE)
if(READLINE_FOUND)
add_library(readline::readline ALIAS PkgConfig::READLINE)
target_compile_definitions(${NAME} PRIVATE USE_READLINE)
+ target_link_libraries(${NAME} PRIVATE readline::readline)
endif()
include(${CMAKE_SOURCE_DIR}/cmake/utils.cmake)
@@ -29,7 +29,7 @@ target_sources(${NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/kamcmd.c
${CMAKE_CURRENT_SOURCE_DIR}/parse_listen_id.c)
# target_include_directories(${NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
# target_link_libraries(${NAME} PRIVATE common)
-target_link_libraries(${NAME} PRIVATE readline::readline resolv)
+target_link_libraries(${NAME} PRIVATE resolv)
target_link_libraries(${NAME} PRIVATE common_utils)
target_compile_definitions(