message(WARNING "You are probably trying to compile using the g++ standard library which contains a crashing std::regex implementation. Will try to use boost::regex instead")
message(WARNING "You are probably trying to compile using the g++ standard library which contains a crashing std::regex implementation. Will try to use boost::regex instead")
set(NEED_BOOST_REGEX ON)
set(BOOST_REGEX_STANDALONE ON)
add_subdirectory(regex)
endif()
endif()
set(CMAKE_THREAD_PREFER_PTHREAD)
set(CMAKE_THREAD_PREFER_PTHREAD)
set(THREADS_PREFER_PTHREAD_FLAG)
set(THREADS_PREFER_PTHREAD_FLAG)
find_package(Threads)
find_package(Threads)
if(NEED_BOOST_REGEX)
find_package(Boost 1.70.0 REQUIRED COMPONENTS system regex)