From c8d2b4448a67502922da9fada8bb8c35f7a35356 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 14 Sep 2025 16:21:39 +0100 Subject: [PATCH] cmake: inline a few variables as needed Avoid creating/appending variables and effectively deviating from the style used across the project. Signed-off-by: Emil Velikov --- src/gui/curses/normal/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/curses/normal/CMakeLists.txt b/src/gui/curses/normal/CMakeLists.txt index 5e25db1d4..98404e435 100644 --- a/src/gui/curses/normal/CMakeLists.txt +++ b/src/gui/curses/normal/CMakeLists.txt @@ -51,13 +51,9 @@ include_directories(.. ../../core ../../plugins ${NCURSES_INCLUDE_PATH}) add_library(weechat_gui_curses_normal STATIC ${LIB_GUI_CURSES_SRC}) -set(WEECHAT_CURSES_MAIN_SRC main.c) - set(EXECUTABLE weechat) -add_executable(${EXECUTABLE} ${WEECHAT_CURSES_MAIN_SRC}) - -list(APPEND EXTRA_LIBS ${NCURSES_LIBRARY}) +add_executable(${EXECUTABLE} main.c) target_link_libraries(${EXECUTABLE} weechat_core @@ -65,6 +61,7 @@ target_link_libraries(${EXECUTABLE} weechat_gui_common weechat_gui_curses_normal ${EXTRA_LIBS} + ${NCURSES_LIBRARY} coverage_config )