C++11 for unix added. Standard CMake command doesn't work on gcc 4.9

This commit is contained in:
Samer Afach 2017-06-09 07:30:19 +02:00
parent dc92fb2b3f
commit 4e26232e24
1 changed files with 1 additions and 0 deletions

View File

@ -11,4 +11,5 @@ target_link_libraries(${PROJECT_NAME} threadpool_lib)
if(UNIX)
target_link_libraries(${PROJECT_NAME} threadpool_lib -pthread)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif(UNIX)