UCRT64 C++15 workaround (closes #753)

This commit is contained in:
Yukino Song
2025-05-26 18:08:08 +08:00
parent 542c4e315b
commit 03194a6fa3

View File

@@ -1,4 +1,9 @@
if (WIN32)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wno-template-body>) # Workaround for WinRT headers
endif()
endif()
elseif (APPLE)
elseif (UNIX)
include(GNUInstallDirs)