Commit 48df23a0 authored by Davis King's avatar Davis King

Fix cmake script so they don't think visual studio 2015 supports C++11, because it doesn't. :(

parent e22be5fd
......@@ -50,7 +50,8 @@ if (CMAKE_VERSION VERSION_LESS "3.1.2")
message(STATUS "*** Your compiler failed to build a C++11 project, so dlib won't use C++11 features.***")
endif()
endif()
else()
elseif(NOT MSVC14) # Visual Studio 14 reports that it supports C++11 but it really doesn't :(
# Set a flag if the compiler you are using is capable of providing C++11 features.
get_property(cxx_features GLOBAL PROPERTY CMAKE_CXX_KNOWN_FEATURES)
if (";${cxx_features};" MATCHES ";cxx_rvalue_references;" AND
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment