From 9881e34aa64e8c98912a2b928be833b8b33d691d Mon Sep 17 00:00:00 2001 From: artemtarassov Date: Sat, 5 Aug 2017 19:33:40 +0200 Subject: [PATCH] Update CMakeLists.txt cmake search for static libraries too --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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")