Skip to content

Commit

Permalink
cmake: Require Windows 10 SDK 20348
Browse files Browse the repository at this point in the history
  • Loading branch information
jpark37 authored and jp9000 committed Sep 11, 2021
1 parent 00941ff commit f9dbde5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Expand Up @@ -14,8 +14,8 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if(WIN32)
cmake_minimum_required(VERSION 3.16)

# Check for Win SDK version 10.0.19041 or above
if(MSVC AND MSVC_VERSION LESS 1920)
# Check for Win SDK version 10.0.20348 or above
if(MSVC)
message(STATUS "Windows API version is ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
string(REPLACE "." ";" WINAPI_VER "${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")

Expand All @@ -26,7 +26,7 @@ if(WIN32)
set(WINAPI_COMPATIBLE FALSE)
if(WINAPI_VER_MAJOR EQUAL 10)
if (WINAPI_VER_MINOR EQUAL 0)
if (WINAPI_VER_BUILD GREATER_EQUAL 19041)
if (WINAPI_VER_BUILD GREATER_EQUAL 20348)
set(WINAPI_COMPATIBLE TRUE)
endif()
else()
Expand All @@ -37,7 +37,7 @@ if(WIN32)
endif()

if(NOT WINAPI_COMPATIBLE)
message(FATAL_ERROR "OBS requires Windows 10 SDK version 10.0.19041.0 and above to compile.\nPlease download the most recent Windows 10 SDK in order to compile (or update to Visual Studio 2019).")
message(FATAL_ERROR "OBS requires Windows 10 SDK version 10.0.20348.0 and above to compile.\nPlease download the most recent Windows 10 SDK in order to compile.")
endif()
endif()

Expand Down

0 comments on commit f9dbde5

Please sign in to comment.