MACOS: fix set CMAKE_OSX_DEPLOYMENT_TARGET
This commit is contained in:
parent
31afe3372d
commit
0c274c55c5
|
@ -7,7 +7,7 @@ file(GLOB_RECURSE SOURCES "src/*.cpp")
|
|||
if(APPLE)
|
||||
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_DEPLOYMENT_TARGET "10.15")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "" FORCE)
|
||||
project ("PlayerLink" LANGUAGES C CXX OBJCXX)
|
||||
else()
|
||||
project ("PlayerLink" LANGUAGES C CXX)
|
||||
|
@ -58,4 +58,4 @@ if(wx_setup_dir)
|
|||
else()
|
||||
message(FATAL_ERROR "wx/setup.h not found. Please check your wxWidgets build configuration.")
|
||||
endif()
|
||||
target_link_libraries(PlayerLink PUBLIC ${LIBRARIES})
|
||||
target_link_libraries(PlayerLink PUBLIC ${LIBRARIES})
|
||||
|
|
Loading…
Reference in New Issue