2 # Copyright Troy D. Straszheim
4 # Distributed under the Boost Software License, Version 1.0.
5 # See http://www.boost.org/LICENSE_1_0.txt
7 # Look for the ICU library. If we find it, we'll compile in support for ICU
9 set(BOOST_REGEX_LIBRARIES)
10 if (ICU_FOUND AND ICU_I18N_FOUND)
11 add_definitions(-DBOOST_HAS_ICU=1)
12 include_directories(${ICU_INCLUDE_DIRS})
13 set(BOOST_REGEX_LIBRARIES ${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES})
14 endif (ICU_FOUND AND ICU_I18N_FOUND)
16 boost_add_library(boost_regex
26 regex_traits_defaults.cpp
33 LINK_LIBS ${BOOST_REGEX_LIBRARIES}
34 SHARED_COMPILE_FLAGS -DBOOST_REGEX_DYN_LINK=1)