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
0c3fe575
Commit
0c3fe575
authored
Nov 05, 2017
by
Davis King
Browse files
Don't use CUDA/DNN stuff in Visual Studio 2017.
parent
978da26e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dlib/cmake_utils/set_compiler_specific_options.cmake
dlib/cmake_utils/set_compiler_specific_options.cmake
+9
-0
No files found.
dlib/cmake_utils/set_compiler_specific_options.cmake
View file @
0c3fe575
...
@@ -14,6 +14,15 @@ elseif(MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0.24215.1 )
...
@@ -14,6 +14,15 @@ elseif(MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0.24215.1 )
message
(
STATUS
"Also, be aware that Visual Studio's version naming is confusing, in particular, there are multiple versions of 'update 3'"
)
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."
)
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
)
set
(
USING_OLD_VISUAL_STUDIO_COMPILER 1
)
elseif
(
MSVC
AND
(
MSVC_VERSION EQUAL 1911 OR MSVC_VERSION EQUAL 1910
))
message
(
STATUS
"******************************************************************************************"
)
message
(
STATUS
"Visual Studio 2017 has incomplete C++11 support and is unable to compile the DNN examples."
)
message
(
STATUS
"So we are disabling the deep learning tools. If you want to use the DNN tools in "
)
message
(
STATUS
"dlib then use Visual Studio 2015 which, surprisingly, has better C++11 support."
)
message
(
STATUS
"Or if you are reading this in the future and a newer version of Visual Studio that "
)
message
(
STATUS
"supports C++11 is available then use that."
)
message
(
STATUS
"******************************************************************************************"
)
set
(
USING_OLD_VISUAL_STUDIO_COMPILER 1
)
endif
()
endif
()
if
(
CMAKE_COMPILER_IS_GNUCXX
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
...
...
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