From c8d33ea6aaa49529df4f50a9a8c8ad1a202a1973 Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 19 Oct 2015 15:18:30 -0400 Subject: [PATCH] Require the compiler to support the thread_local C++11 feature. --- dlib/use_cpp_11.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlib/use_cpp_11.cmake b/dlib/use_cpp_11.cmake index 872c8346d..339940828 100644 --- a/dlib/use_cpp_11.cmake +++ b/dlib/use_cpp_11.cmake @@ -59,7 +59,9 @@ else() ";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_lambdas;" AND ";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_defaulted_move_initializers;" AND ";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_delegating_constructors;" AND + ";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_thread_local;" AND ";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_auto_type;") + set(COMPILER_CAN_DO_CPP_11 1) # Set which standard to use unless someone has already set it to something # newer.