From 849463e13accbcbeda3e0ac3a6353149733b966a Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:10:46 +0300 Subject: [PATCH] Enable CMake option override policy & fix compilation error. --- UnleashedRecomp/stdafx.h | 1 + thirdparty/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/UnleashedRecomp/stdafx.h b/UnleashedRecomp/stdafx.h index ec224344..929f0f58 100644 --- a/UnleashedRecomp/stdafx.h +++ b/UnleashedRecomp/stdafx.h @@ -46,6 +46,7 @@ using Microsoft::WRL::ComPtr; #include #include #include +#include #include "framework.h" #include "mutex.h" diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 6430650e..4ace5405 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -1,8 +1,11 @@ +cmake_policy(SET CMP0077 NEW) + set(MSDF_ATLAS_BUILD_STANDALONE OFF) set(MSDF_ATLAS_USE_SKIA OFF) set(MSDF_ATLAS_NO_ARTERY_FONT ON) set(MSDFGEN_DISABLE_PNG ON) +set(SDL2MIXER_DEPS_SHARED OFF) set(SDL2MIXER_VENDORED ON) set(SDL2MIXER_FLAC OFF) set(SDL2MIXER_MOD OFF)