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
63c2465f
"tests/python/common/backend/test_tensor.py" did not exist on "444becf00a10f74d6d6c7187798706355ca05612"
Commit
63c2465f
authored
Jun 22, 2016
by
Fm
Browse files
Added compiler flags for VS compiling DNN samples without warnings
parent
a3515c8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
examples/CMakeLists.txt
examples/CMakeLists.txt
+11
-0
No files found.
examples/CMakeLists.txt
View file @
63c2465f
...
@@ -10,6 +10,10 @@ PROJECT(examples)
...
@@ -10,6 +10,10 @@ PROJECT(examples)
include
(
../dlib/cmake
)
include
(
../dlib/cmake
)
if
(
POLICY CMP0054
)
cmake_policy
(
SET CMP0054 NEW
)
endif
()
# Tell CMake to compile a program. We do this with the ADD_EXECUTABLE()
# Tell CMake to compile a program. We do this with the ADD_EXECUTABLE()
# statement which takes the name of the output executable and then a list of
# statement which takes the name of the output executable and then a list of
# .cpp files to compile. Here each example consists of only one .cpp file but
# .cpp files to compile. Here each example consists of only one .cpp file but
...
@@ -31,6 +35,13 @@ ENDMACRO()
...
@@ -31,6 +35,13 @@ ENDMACRO()
# The deep learning toolkit requires a C++11 capable compiler.
# The deep learning toolkit requires a C++11 capable compiler.
if
(
COMPILER_CAN_DO_CPP_11
)
if
(
COMPILER_CAN_DO_CPP_11
)
# Visual Studio Specific
# DNN module produces long type names for NN definitions - disable this warning for MSVC
# And when compiling Debug mode file will be too big for normal compilation
if
(
MSVC OR
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MSVC"
)
message
(
STATUS
"Enabling Visual Studio specific flags for DNN"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/wd4503 /bigobj"
)
endif
()
add_example
(
dnn_mnist_ex
)
add_example
(
dnn_mnist_ex
)
add_example
(
dnn_mnist_advanced_ex
)
add_example
(
dnn_mnist_advanced_ex
)
add_example
(
dnn_inception_ex
)
add_example
(
dnn_inception_ex
)
...
...
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