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
"git@developer.sourcefind.cn:OpenDAS/fastmoe.git" did not exist on "f9bec836e311381713de22b38eca4a810aee6094"
Commit
1c8728b7
authored
Feb 18, 2017
by
Davis King
Browse files
Changed cmake script to avoid warnings from visual studio.
parent
a12e5842
Changes
1
Show 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,8 +539,10 @@ if (NOT TARGET dlib)
...
@@ -539,8 +539,10 @@ 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.
if
(
NOT MSVC
)
# Visual studio doesn't have -fPIC so don't do it in that case.
list
(
APPEND CUDA_NVCC_FLAGS
"-Xcompiler -fPIC"
)
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