mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-25 15:21:43 +00:00
Cmake/MSVC: Fix Qt6 discover for IDEs other than Visual Studio
CMakeSettings.json is a Visual Studio only extention to cmake that isn't supported anywhere else. Not even Visual Studio Code. So we set CMAKE_PREFIX_PATH inside DolphinQt's CMakeLists.txt instead.
This commit is contained in:
parent
2843cd10a8
commit
1956ce151f
@ -9,10 +9,6 @@
|
||||
"buildRoot": "${workspaceRoot}\\Build\\${name}",
|
||||
"cmakeCommandArgs": "",
|
||||
"variables": [
|
||||
{
|
||||
"name": "CMAKE_PREFIX_PATH",
|
||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -24,10 +20,6 @@
|
||||
"buildRoot": "${workspaceRoot}\\Build\\${name}",
|
||||
"cmakeCommandArgs": "",
|
||||
"variables": [
|
||||
{
|
||||
"name": "CMAKE_PREFIX_PATH",
|
||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -39,10 +31,6 @@
|
||||
"buildRoot": "${workspaceRoot}\\Build\\${name}",
|
||||
"cmakeCommandArgs": "",
|
||||
"variables": [
|
||||
{
|
||||
"name": "CMAKE_PREFIX_PATH",
|
||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64"
|
||||
},
|
||||
{
|
||||
"name": "CMAKE_SYSTEM_NAME",
|
||||
"value": "Windows"
|
||||
@ -62,10 +50,6 @@
|
||||
"buildRoot": "${workspaceRoot}\\Build\\${name}",
|
||||
"cmakeCommandArgs": "",
|
||||
"variables": [
|
||||
{
|
||||
"name": "CMAKE_PREFIX_PATH",
|
||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64"
|
||||
},
|
||||
{
|
||||
"name": "CMAKE_SYSTEM_NAME",
|
||||
"value": "Windows"
|
||||
|
@ -3,11 +3,11 @@ if(POLICY CMP0084)
|
||||
cmake_policy(SET CMP0084 NEW)
|
||||
endif()
|
||||
|
||||
if (NOT QT_DIR AND MSVC)
|
||||
if (MSVC)
|
||||
if(_M_ARM_64)
|
||||
set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/ARM64/lib/cmake/Qt6")
|
||||
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/ARM64")
|
||||
else()
|
||||
set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/x64/lib/cmake/Qt6")
|
||||
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/x64")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user