MACOS: fix set CMAKE_OSX_DEPLOYMENT_TARGET

This commit is contained in:
EinTim 2024-11-06 22:28:59 +01:00 committed by GitHub
parent 31afe3372d
commit 0c274c55c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ file(GLOB_RECURSE SOURCES "src/*.cpp")
if(APPLE) if(APPLE)
list(APPEND SOURCES "src/backends/darwin.mm" ${CMAKE_SOURCE_DIR}/osx/icon.icns) list(APPEND SOURCES "src/backends/darwin.mm" ${CMAKE_SOURCE_DIR}/osx/icon.icns)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE) set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15") set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "" FORCE)
project ("PlayerLink" LANGUAGES C CXX OBJCXX) project ("PlayerLink" LANGUAGES C CXX OBJCXX)
else() else()
project ("PlayerLink" LANGUAGES C CXX) project ("PlayerLink" LANGUAGES C CXX)
@ -58,4 +58,4 @@ if(wx_setup_dir)
else() else()
message(FATAL_ERROR "wx/setup.h not found. Please check your wxWidgets build configuration.") message(FATAL_ERROR "wx/setup.h not found. Please check your wxWidgets build configuration.")
endif() endif()
target_link_libraries(PlayerLink PUBLIC ${LIBRARIES}) target_link_libraries(PlayerLink PUBLIC ${LIBRARIES})