From 89fda54820744848d19686b21221a86f6917e24b Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Thu, 28 Apr 2022 17:15:30 +1200 Subject: [PATCH] cmake: fix ninja/msvc builds If you don't set this policy, then cmake doesn't even try to select a runtime library --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 337877cb38..148872fc82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,9 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14.0" CACHE STRING "") set(CMAKE_USER_MAKE_RULES_OVERRIDE "CMake/FlagsOverride.cmake") +# Required for cmake to select the correct runtime library in MSVC builds. +cmake_policy(SET CMP0091 NEW) + project(dolphin-emu) # Name of the Dolphin distributor. If you redistribute Dolphin builds (forks,