Skip to content

Commit

Permalink
(maint) System Locales fails regex backup
Browse files Browse the repository at this point in the history
In case the locales on the system fails(due to gconv, or somethingelse),
leatherman will use boost::format and boost::regex, to create %N%style
formatting. 'regex' is only included in CMakeLists.txt if localesare
enabled, but if they fail, 'regex' will be required

This PR adds 'regex' to BOOST_COMPONENTS even if leatherman useslocales,
as an extra check in case the locales are enabled but fail.
  • Loading branch information
Dorin-Pleava committed Jun 19, 2020
1 parent fcf64f1 commit 11ee6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ endif()
include(leatherman)

if(LEATHERMAN_USE_LOCALES)
set(BOOST_COMPONENTS locale)
set(BOOST_COMPONENTS locale regex)
else()
set(BOOST_COMPONENTS regex)
endif()
Expand Down

0 comments on commit 11ee6eb

Please sign in to comment.