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)