Skip to content

Commit

Permalink
Add desktop-app specific definitions for Boost.regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 26, 2023
1 parent 21a8d79 commit fef4eba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions external/boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
add_library(external_boost_regex INTERFACE IMPORTED GLOBAL)
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)
find_package(Boost COMPONENTS regex REQUIRED)
target_link_libraries(external_boost_regex INTERFACE Boost::regex)
Expand Down

0 comments on commit fef4eba

Please sign in to comment.