From a1c3aa14cb72f18062f917b9bde34ebd89eae1bc Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Fri, 22 Dec 2023 20:12:17 -0600 Subject: [PATCH] Remove redundant link libraries This is the warning I got when building this locally ld: warning: ignoring duplicate libraries: 'lib/libsfml-graphics-s-d.a', 'lib/libsfml-system-s-d.a', 'lib/libsfml-window-s-d.a' --- examples/cocoa/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cocoa/CMakeLists.txt b/examples/cocoa/CMakeLists.txt index 27221eee6..5a69fa0d2 100644 --- a/examples/cocoa/CMakeLists.txt +++ b/examples/cocoa/CMakeLists.txt @@ -53,8 +53,8 @@ set_source_files_properties(${RESOURCES} PROPERTIES sfml_add_example(cocoa SOURCES ${SRC} BUNDLE_RESOURCES ${RESOURCES} - DEPENDS SFML::System SFML::Window SFML::Graphics) + DEPENDS SFML::Graphics) set_target_properties(cocoa PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/resources/Cocoa-Info.plist) -target_link_libraries(cocoa PRIVATE "-framework Cocoa" "-framework Foundation" SFML::Graphics) +target_link_libraries(cocoa PRIVATE "-framework Cocoa" "-framework Foundation")