From 4e26232e248f37447a07cfdc9a20958c351f8957 Mon Sep 17 00:00:00 2001 From: Samer Afach Date: Fri, 9 Jun 2017 07:30:19 +0200 Subject: [PATCH] C++11 for unix added. Standard CMake command doesn't work on gcc 4.9 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d8fc8e..2ea39bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)