ivanmejiarocha / micro-service

sample micro-service in C++
MIT License
263 stars 129 forks source link

add -pthread for gcc compiler #24

Open Duwaz opened 5 years ago

Duwaz commented 5 years ago

Hi, Ivan!

Gcc doesn't support work with threads by default. Add -pthread for turn on.

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=gnu++11 -DBOOST_LOG_DYN_LINK")

Thank you!