Meta: Pass C11 and C++17 flags to icu build on Windows

icu 75.x and higher requires C++17. This change is pulled from an
abandoned PR to uprev vcpkg's version to 75. Presumably the flags
should be set upstream as well in their configure.ac
This commit is contained in:
Andrew Kaster 2025-02-05 15:54:14 -07:00 committed by Andrew Kaster
commit 86c5bde83f
Notes: github-actions[bot] 2025-02-05 23:02:02 +00:00

View file

@ -62,6 +62,11 @@ endif()
if(VCPKG_TARGET_IS_WINDOWS)
list(APPEND CONFIGURE_OPTIONS --enable-icu-build-win)
# https://github.com/microsoft/vcpkg/pull/38826/files#diff-ea2b03d0dcb43b39cfac7b4f96e0ba52a5e4f15c1df6986850e0d52d56229430R64
if(NOT VCPKG_TARGET_IS_MINGW)
string(APPEND VCPKG_C_FLAGS "/std:c11")
string(APPEND VCPKG_CXX_FLAGS "/std:c++17")
endif()
endif()
if("tools" IN_LIST FEATURES)