Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0eb92bbe
"docs/vscode:/vscode.git/clone" did not exist on "91da96431f836d8865b416f7d4a6e19c92ec0a15"
Commit
0eb92bbe
authored
Oct 09, 2016
by
Davis King
Browse files
Fixed old visual studio check
parent
2787edc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/cmake_utils/use_cpp_11.cmake
dlib/cmake_utils/use_cpp_11.cmake
+2
-2
No files found.
dlib/cmake_utils/use_cpp_11.cmake
View file @
0eb92bbe
...
...
@@ -50,14 +50,14 @@ if (CMAKE_VERSION VERSION_LESS "3.1.2")
message
(
FATAL_ERROR
"*** Your compiler failed to build a C++11 project, so dlib won't use C++11 features.***"
)
endif
()
endif
()
elseif
(
MSVC AND MSVC_VERSION VERSION_LESS 1900
)
message
(
FATAL_ERROR
"C++11 is required to use dlib, but the version of Visual Studio you are using is too old and doesn't support C++11."
)
elseif
(
MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0.24215.1
)
message
(
STATUS
"NOTE: Visual Studio didn't have good enough C++11 support until Visual Studio 2015 update 3 (v19.0.24215.1)"
)
message
(
STATUS
"So we aren't enabling things that require full C++11 support (e.g. the deep learning tools)."
)
message
(
STATUS
"Also, be aware that Visual Studio's version naming is confusing, in particular, there are multiple versions of 'update 3'"
)
message
(
STATUS
"So if you are getting this message you need to update to the newer version of Visual Studio to use full C++11."
)
set
(
USING_OLD_VISUAL_STUDIO_COMPILER 1
)
elseif
(
MSVC AND MSVC_VERSION VERSION_LESS 1900
)
message
(
FATAL_ERROR
"C++11 is required to use dlib, but the version of Visual Studio you are using is too old and doesn't support C++11."
)
else
()
# Set a flag if the compiler you are using is capable of providing C++11 features.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment