Skip to content
Snippets Groups Projects
Commit 6c77be47 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Add pthread to cmakelists

parent e9d0297a
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ sudo wget -O boost_1_66_0.tar.gz http://sourceforge.net/projects/boost/files/boo
sudo tar xzf boost_1_66_0.tar.gz
cd boost_1_66_0/
sudo ./bootstrap.sh --with-libraries=random,thread,system,chrono,date_time,atomic --prefix=/usr/local
sudo ./bootstrap.sh --with-libraries=random,thread,system --prefix=/usr/local
sudo ./b2 -d0 variant=debug link=shared
sudo ./b2 -d0 install
......@@ -36,6 +36,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
endif()
endif()
if(NOT APPLE AND NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.66 REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment