mirror of https://github.com/davisking/dlib.git
Require the compiler to support the thread_local C++11 feature.
This commit is contained in:
parent
ad03f747e4
commit
c8d33ea6aa
|
@ -59,7 +59,9 @@ else()
|
||||||
";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_lambdas;" AND
|
";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_lambdas;" AND
|
||||||
";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_defaulted_move_initializers;" 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_delegating_constructors;" AND
|
||||||
|
";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_thread_local;" AND
|
||||||
";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_auto_type;")
|
";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_auto_type;")
|
||||||
|
|
||||||
set(COMPILER_CAN_DO_CPP_11 1)
|
set(COMPILER_CAN_DO_CPP_11 1)
|
||||||
# Set which standard to use unless someone has already set it to something
|
# Set which standard to use unless someone has already set it to something
|
||||||
# newer.
|
# newer.
|
||||||
|
|
Loading…
Reference in New Issue