mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-12 19:30:44 +02:00
Updated CMakeList.txt and BuildMacOSUniversalBinary.py to target 10.15.0
Added OS check to Source/Core/DolphinQt/CMakeLists.txt so correct version of Qt is used based off OS (Qt5 for Linux and QT6 or MacOS)
This commit is contained in:
parent
7532f5b3ec
commit
777af16f6c
@ -64,7 +64,7 @@ DEFAULT_CONFIG = {
|
|||||||
|
|
||||||
# Minimum macOS version for each architecture slice
|
# Minimum macOS version for each architecture slice
|
||||||
"arm64_mac_os_deployment_target": "11.0.0",
|
"arm64_mac_os_deployment_target": "11.0.0",
|
||||||
"x86_64_mac_os_deployment_target": "10.14.0",
|
"x86_64_mac_os_deployment_target": "10.15.0",
|
||||||
|
|
||||||
# CMake Generator to use for building
|
# CMake Generator to use for building
|
||||||
"generator": "Unix Makefiles",
|
"generator": "Unix Makefiles",
|
||||||
|
@ -16,7 +16,7 @@ endif()
|
|||||||
|
|
||||||
# Minimum OS X version.
|
# Minimum OS X version.
|
||||||
# This is inserted into the Info.plist as well.
|
# This is inserted into the Info.plist as well.
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14.0" CACHE STRING "")
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15.0" CACHE STRING "")
|
||||||
|
|
||||||
set(CMAKE_USER_MAKE_RULES_OVERRIDE "CMake/FlagsOverride.cmake")
|
set(CMAKE_USER_MAKE_RULES_OVERRIDE "CMake/FlagsOverride.cmake")
|
||||||
|
|
||||||
|
@ -17,7 +17,11 @@ set(CMAKE_AUTOMOC ON)
|
|||||||
# When Qt5 and Qt6 are given in same NAMES entry, only Qt5 is ever found.
|
# When Qt5 and Qt6 are given in same NAMES entry, only Qt5 is ever found.
|
||||||
# find_package(QT NAMES Qt6 COMPONENTS Core Gui Widgets)
|
# find_package(QT NAMES Qt6 COMPONENTS Core Gui Widgets)
|
||||||
# if(NOT QT_DIR)
|
# if(NOT QT_DIR)
|
||||||
|
if (UNIX AND NOT APPLE)
|
||||||
find_package(QT NAMES Qt5 COMPONENTS Core Gui Widgets)
|
find_package(QT NAMES Qt5 COMPONENTS Core Gui Widgets)
|
||||||
|
else()
|
||||||
|
find_package(QT NAMES Qt6 COMPONENTS Core Gui Widgets)
|
||||||
|
endif()
|
||||||
# endif()
|
# endif()
|
||||||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets)
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets)
|
||||||
message(STATUS "Found Qt version ${QT_VERSION}")
|
message(STATUS "Found Qt version ${QT_VERSION}")
|
||||||
|
Loading…
Reference in New Issue
Block a user