mapnik/mapnik
CMakeLists.txt
:171
list(APPEND MAPNIK_COMPILE_DEFS BOOST_REGEX_HAS_ICU)
list(APPEND MAPNIK_COMPILE_DEFS BOOST_REGEX_HAS_ICU)
list(APPEND MAPNIK_COMPILE_DEFS BOOST_REGEX_HAS_ICU)
check_cxx_source_runs([[
#include <boost/regex/icu.hpp>
#include <unicode/unistr.h>
int main()
{
U_NAMESPACE_QUALIFIER UnicodeString ustr;
try {
boost::u32regex pattern = boost::make_u32regex(ustr);
}
// an exception is fine, still indicates support is
// likely compiled into regex
catch (...) {
return 0;
}
return 0;
}
]] BOOST_REGEX_HAS_ICU)