CMake: Prepend space to VCPKG_{C,CXX}_FLAGS in icu port overlay

When updating these variables, the appender is responsible for the
preceeding space. Otherwise, flags get jammed together.
This commit is contained in:
Andrew Kaster 2025-06-22 12:42:46 -06:00 committed by Andrew Kaster
commit b4cc34d0ae
Notes: github-actions[bot] 2025-06-22 19:34:47 +00:00

View file

@ -64,8 +64,8 @@ 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")
string(APPEND VCPKG_C_FLAGS " /std:c11")
string(APPEND VCPKG_CXX_FLAGS " /std:c++17")
endif()
endif()