mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-13 03:40:44 +02:00
Force use Qt 5.15 from Externals
This commit is contained in:
parent
195b1fb2b9
commit
4b2eeee49a
@ -3,22 +3,22 @@ if(POLICY CMP0084)
|
|||||||
cmake_policy(SET CMP0084 NEW)
|
cmake_policy(SET CMP0084 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT QT_DIR AND MSVC)
|
# if (NOT QT_DIR AND MSVC)
|
||||||
if(_M_ARM_64)
|
# if(_M_ARM_64)
|
||||||
set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/ARM64/lib/cmake/Qt6")
|
# set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/ARM64/lib/cmake/Qt6")
|
||||||
else()
|
# else()
|
||||||
set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/x64/lib/cmake/Qt6")
|
# set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/x64/lib/cmake/Qt6")
|
||||||
endif()
|
# endif()
|
||||||
endif()
|
# endif()
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
||||||
# For some reason the method in Qt6 documentation is not working (at least on ubuntu jammy)
|
# For some reason the method in Qt6 documentation is not working (at least on ubuntu jammy)
|
||||||
# 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)
|
||||||
find_package(QT NAMES Qt5 COMPONENTS Core Gui Widgets)
|
find_package(QT NAMES Qt5 COMPONENTS Core Gui Widgets)
|
||||||
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