cmake: fix ninja/msvc builds

If you don't set this policy, then cmake doesn't even try
to select a runtime library
This commit is contained in:
Scott Mansell 2022-04-28 17:15:30 +12:00 committed by Admiral H. Curtiss
parent 0909e00117
commit 89fda54820
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 3 additions and 0 deletions

View File

@ -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,