From dfa1dbd669d26fb1d7de44d7bcd559319679e532 Mon Sep 17 00:00:00 2001 From: Your Cosmo Date: Tue, 17 Apr 2018 11:44:33 +0300 Subject: [PATCH] Boost regex is required for all --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b0ea167..f53c77eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ if(USE_STANDALONE_ASIO) message(FATAL_ERROR "Standalone Asio not found") endif() else() - find_package(Boost 1.54.0 COMPONENTS system thread coroutine context REQUIRED) + find_package(Boost 1.54.0 COMPONENTS system thread coroutine context regex REQUIRED) target_link_libraries(simple-websocket-server INTERFACE ${Boost_LIBRARIES}) target_include_directories(simple-websocket-server INTERFACE ${Boost_INCLUDE_DIR}) if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) @@ -53,7 +53,7 @@ target_include_directories(simple-websocket-server INTERFACE ${OPENSSL_INCLUDE_D if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") add_executable(ws_examples ws_examples.cpp) target_link_libraries(ws_examples simple-websocket-server) - find_package(Boost 1.54.0 COMPONENTS system thread filesystem REQUIRED) + find_package(Boost 1.54.0 COMPONENTS system thread filesystem regex REQUIRED) target_link_libraries(ws_examples ${Boost_LIBRARIES}) target_include_directories(ws_examples PRIVATE ${Boost_INCLUDE_DIR}) if(OPENSSL_FOUND)