mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
f5497b2db6
commit
a1c3aa14cb
@ -53,8 +53,8 @@ set_source_files_properties(${RESOURCES} PROPERTIES
|
|||||||
sfml_add_example(cocoa
|
sfml_add_example(cocoa
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
BUNDLE_RESOURCES ${RESOURCES}
|
BUNDLE_RESOURCES ${RESOURCES}
|
||||||
DEPENDS SFML::System SFML::Window SFML::Graphics)
|
DEPENDS SFML::Graphics)
|
||||||
set_target_properties(cocoa PROPERTIES
|
set_target_properties(cocoa PROPERTIES
|
||||||
MACOSX_BUNDLE TRUE
|
MACOSX_BUNDLE TRUE
|
||||||
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/resources/Cocoa-Info.plist)
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user