added missing -pthread compiler flag

This commit is contained in:
Kjistóf 2016-12-04 17:52:13 +01:00
parent 406c7b2841
commit 41221076da

View File

@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.6)
project(cpp11NHF2_chat)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -pthread")
find_package(Boost COMPONENTS system REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
set(SOURCE_FILES commandline_chat.cpp chat_messages.hpp chat_networking.hpp)
add_executable(cpp11NHF2_chat ${SOURCE_FILES})
target_link_libraries(cpp11NHF2_chat ${Boost_LIBRARIES})
target_link_libraries(cpp11NHF2_chat ${Boost_LIBRARIES})