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'
This commit is contained in:
Chris Thrasher 2023-12-22 20:12:17 -06:00
parent f5497b2db6
commit a1c3aa14cb

View File

@ -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")