(macOS) Suppressed an annoying linker warning regarding duplicate static libraries which was introduced with Xcode 15

This commit is contained in:
Leon Styhre 2023-10-20 19:25:21 +02:00
parent ce9089ca05
commit 529f3c7021

View file

@ -124,6 +124,9 @@ if(APPLE)
add_executable(EmulationStation ${ES_SOURCES} ${ES_HEADERS})
target_link_libraries(EmulationStation ${COMMON_LIBRARIES} es-core)
set_target_properties(EmulationStation PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
if(CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 15.0.0)
target_link_options(EmulationStation PRIVATE LINKER:-no_warn_duplicate_libraries)
endif()
elseif(WIN32)
include_directories(${COMMON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/src)
add_executable(EmulationStation WIN32 ${ES_SOURCES} ${ES_HEADERS})