Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
0c3fe575
Commit
0c3fe575
authored
Nov 05, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use CUDA/DNN stuff in Visual Studio 2017.
parent
978da26e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
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 )
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 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
()
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