Merge pull request #11506 from phire/cmake_fixes

CMake/MSVC fixes
This commit is contained in:
Scott Mansell
2023-01-31 23:53:31 +13:00
committed by GitHub
7 changed files with 45 additions and 25 deletions

View File

@ -1,6 +1,9 @@
#pragma once
#include <Windows.h>
#include <string>
#include "Common/CommonTypes.h"
namespace WindowsRegistry
{

View File

@ -4,9 +4,11 @@
#include "Common/CPUDetect.h"
#ifdef _WIN32
#include <windows.h>
#include <processthreadsapi.h>
#endif
#include <algorithm>
#include <cstring>
#include <string>
#include <thread>

View File

@ -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()