diff --git a/CMakeLists.txt b/CMakeLists.txt index 76f1e4e8..d1cad655 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required (VERSION 2.8) project (Simple-WebSocket-Server) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra") +# Just in case you use static libs, otherwise cmake wont find all libraries +set(Boost_USE_STATIC_LIBS ON) + set(BOOST_COMPONENTS system coroutine context thread) # Late 2017 TODO: remove the following checks and always use std::regex if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")