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
f5da9fe2
Commit
f5da9fe2
authored
Oct 08, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed cmake so it compiles most of the DNN examples when using visual studio.
parent
1e35214d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
use_cpp_11.cmake
dlib/cmake_utils/use_cpp_11.cmake
+6
-1
CMakeLists.txt
examples/CMakeLists.txt
+6
-1
No files found.
dlib/cmake_utils/use_cpp_11.cmake
View file @
f5da9fe2
...
...
@@ -50,7 +50,12 @@ 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
()
elseif
(
NOT MSVC14
)
# Visual Studio 14 reports that it supports C++11 but it really doesn't :(
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."
)
else
()
# 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
)
...
...
examples/CMakeLists.txt
View file @
f5da9fe2
...
...
@@ -44,11 +44,16 @@ if (COMPILER_CAN_DO_CPP_11)
add_example
(
dnn_introduction2_ex
)
add_example
(
dnn_inception_ex
)
add_gui_example
(
dnn_imagenet_ex
)
add_example
(
dnn_imagenet_train_ex
)
add_gui_example
(
dnn_mmod_ex
)
add_gui_example
(
dnn_mmod_face_detection_ex
)
add_gui_example
(
random_cropper_ex
)
add_gui_example
(
dnn_mmod_dog_hipsterizer
)
if
(
NOT MSVC
)
# Don't try to compile this program using Visual Studio since it causes the
# compiler to run out of RAM and to crash. Maybe someday Visual Studio
# won't be broken :(
add_example
(
dnn_imagenet_train_ex
)
endif
()
endif
()
#here we apply our macros
...
...
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