From 8a1713ccf0dae28d44932eb7b239a3a6c4ef6354 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 24 Oct 2020 05:41:59 +0200 Subject: [PATCH] Set NTTDI_VERSION to Windows 10 RS2, needed for MSVC --- editor/cmake/Vstgui.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/cmake/Vstgui.cmake b/editor/cmake/Vstgui.cmake index 4890d11d..56e32ffb 100644 --- a/editor/cmake/Vstgui.cmake +++ b/editor/cmake/Vstgui.cmake @@ -204,6 +204,8 @@ endif() if(CMAKE_SYSTEM_NAME STREQUAL "Windows") # higher C++ requirement on Windows set_property(TARGET sfizz-vstgui PROPERTY CXX_STANDARD 14) + # Windows 10 RS2 DDI for custom fonts + target_compile_definitions(sfizz-vstgui PRIVATE "NTDDI_VERSION=0x0A000003") # disable custom fonts while dwrite3 API is unavailable in MinGW if(MINGW) target_compile_definitions(sfizz-vstgui PRIVATE "VSTGUI_WIN32_CUSTOMFONT_SUPPORT=0")