8 Oct
2021
8 Oct
'21
2:25 p.m.
The most correct solution would be providing a separate regex-icu package altogether, that depends on both regex and ICU, but I don't think Boost rolls that way. Optional dependencies are really nasty. I guess what one could do is have a package component and request ICU support explicitly: # The user requests regex with ICU, so it's safe to # find_dependency(ICU i18n) in the package config for ICU # internationalization and link it with the # regex/headers target find_package(Boost REQUIRED regexWithICU)