mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 03:03:12 +02:00
cmake: remove unnecessary add_dependencies()
In a handful of places we explicitly use add_dependencies() where the exact same libraries are also (implicitly) added as dependencies via target_link_libraries(). Remove the folder, which helps us remove some duplication with follow-up patches. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
committed by
Sébastien Helleu
parent
150e6ecd82
commit
20a7affb70
@@ -52,11 +52,6 @@ add_executable(${EXECUTABLE}
|
||||
${WEECHAT_CURSES_MAIN_HEADLESS_SRC}
|
||||
)
|
||||
|
||||
add_dependencies(${EXECUTABLE}
|
||||
weechat_gui_headless
|
||||
weechat_ncurses_fake
|
||||
)
|
||||
|
||||
target_link_libraries(${EXECUTABLE}
|
||||
weechat_core
|
||||
weechat_plugins
|
||||
|
||||
@@ -57,8 +57,6 @@ set(EXECUTABLE weechat)
|
||||
|
||||
add_executable(${EXECUTABLE} ${WEECHAT_CURSES_MAIN_SRC})
|
||||
|
||||
add_dependencies(${EXECUTABLE} weechat_gui_curses_normal)
|
||||
|
||||
list(APPEND EXTRA_LIBS ${NCURSES_LIBRARY})
|
||||
|
||||
target_link_libraries(${EXECUTABLE}
|
||||
|
||||
Reference in New Issue
Block a user