1
0
Fork 0

Add desktop-app specific definitions for Boost.regex.

This commit is contained in:
John Preston 2023-10-26 13:51:54 +04:00
parent 21a8d7996d
commit fef4eba1b7

View file

@ -7,6 +7,12 @@
add_library(external_boost_regex INTERFACE IMPORTED GLOBAL) add_library(external_boost_regex INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_boost_regex ALIAS external_boost_regex) add_library(desktop-app::external_boost_regex ALIAS external_boost_regex)
target_compile_definitions(external_boost_regex
INTERFACE
BOOST_NO_INTRINSIC_WCHAR_T
BOOST_REGEX_NO_W32
)
if (DESKTOP_APP_USE_PACKAGED OR LINUX) if (DESKTOP_APP_USE_PACKAGED OR LINUX)
find_package(Boost COMPONENTS regex REQUIRED) find_package(Boost COMPONENTS regex REQUIRED)
target_link_libraries(external_boost_regex INTERFACE Boost::regex) target_link_libraries(external_boost_regex INTERFACE Boost::regex)