vcpkg/ports/boost-regex/b2-options.cmake
Osyotr 5955c45dcf
[boost-regex] Fix icu feature (#25505)
Explicitly disable icu feature if not selected in vcpkg

Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2022-07-07 14:28:29 -07:00

9 lines
298 B
CMake

if("icu" IN_LIST FEATURES)
set(B2_REQUIREMENTS "<library>/user-config//icuuc <library>/user-config//icudt <library>/user-config//icuin <define>BOOST_HAS_ICU=1")
if(APPLE)
list(APPEND B2_OPTIONS cxxstd=11)
endif()
else()
list(APPEND B2_OPTIONS --disable-icu)
endif()