From 11ee6eb309c05dd5ecf206df408f14ee8ef374c4 Mon Sep 17 00:00:00 2001 From: Dorin Pleava Date: Thu, 18 Jun 2020 10:43:16 +0300 Subject: [PATCH] (maint) System Locales fails regex backup 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20f09eaa..ee25cfd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()