From 65cdf8899481f35272c8fdd37eef2d36dc2bcfc0 Mon Sep 17 00:00:00 2001 From: Ryan Thompson Date: Mon, 7 Apr 2025 14:15:59 -0500 Subject: [PATCH] bladeRF-power: fixed ncurses dep On macOS, sometimes the ${CURSES_LIBRARIES} variable provided by find_package(Curses) doesn't correctly include all the necessary linkage information, especially when using wide character support. By explicitly adding ncurses to the link libraries for Apple platforms, we ensure that the linker can find all the required symbols. --- host/utilities/bladeRF-power/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host/utilities/bladeRF-power/CMakeLists.txt b/host/utilities/bladeRF-power/CMakeLists.txt index 458afe90..b0131a1f 100644 --- a/host/utilities/bladeRF-power/CMakeLists.txt +++ b/host/utilities/bladeRF-power/CMakeLists.txt @@ -24,6 +24,7 @@ target_link_libraries(${PROJECT_NAME} libbladerf_shared m ${BLADERF_HOST_COMMON_LIBRARIES} - ${CURSES_LIBRARIES}) + ${CURSES_LIBRARIES} + ncurses) install(TARGETS ${PROJECT_NAME} DESTINATION ${BIN_INSTALL_DIR})