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
1c8728b7
Commit
1c8728b7
authored
Feb 18, 2017
by
Davis King
Browse files
Changed cmake script to avoid warnings from visual studio.
parent
a12e5842
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+3
-1
No files found.
dlib/CMakeLists.txt
View file @
1c8728b7
...
@@ -539,7 +539,9 @@ if (NOT TARGET dlib)
...
@@ -539,7 +539,9 @@ if (NOT TARGET dlib)
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.
list
(
APPEND CUDA_NVCC_FLAGS
"-Xcompiler -fPIC"
)
if
(
NOT MSVC
)
# Visual studio doesn't have -fPIC so don't do it in that case.
list
(
APPEND CUDA_NVCC_FLAGS
"-Xcompiler -fPIC"
)
endif
()
endif
()
endif
()
include
(
cmake_utils/test_for_cudnn/find_cudnn.txt
)
include
(
cmake_utils/test_for_cudnn/find_cudnn.txt
)
...
...
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