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
5ea4d11a
Commit
5ea4d11a
authored
Feb 28, 2017
by
Davis King
Browse files
Don't give -std=c++11 to nvcc when compiling with visual studio. This avoids a compiler warning.
parent
655b7f7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+4
-1
No files found.
dlib/CMakeLists.txt
View file @
5ea4d11a
...
@@ -523,7 +523,10 @@ if (NOT TARGET dlib)
...
@@ -523,7 +523,10 @@ if (NOT TARGET dlib)
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific
# magic in the standard C++ header files (since nvcc uses gcc headers on
# magic in the standard C++ header files (since nvcc uses gcc headers on
# linux).
# linux).
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES;
${
FLAGS_FOR_NVCC
}
"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES;
${
FLAGS_FOR_NVCC
}
"
)
if
(
NOT MSVC
)
list
(
APPEND CUDA_NVCC_FLAGS
"-std=c++11"
)
endif
()
if
(
CMAKE_POSITION_INDEPENDENT_CODE
)
if
(
CMAKE_POSITION_INDEPENDENT_CODE
)
# sometimes this setting isn't propagated to NVCC, which then causes the
# sometimes this setting isn't propagated to NVCC, which then causes the
# compile to fail. So make sure it's propagated.
# compile to fail. So make sure it's propagated.
...
...
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