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
0ab5b70e
Commit
0ab5b70e
authored
Sep 23, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around a bug in cmake with regard to cuda 10
parent
782ade07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
CMakeLists.txt
dlib/CMakeLists.txt
+9
-0
No files found.
dlib/CMakeLists.txt
View file @
0ab5b70e
...
...
@@ -30,6 +30,9 @@ if (POLICY CMP0063)
# ignore it for backwards compatibility.
cmake_policy
(
SET CMP0063 NEW
)
endif
()
if
(
POLICY CMP0075
)
cmake_policy
(
SET CMP0075 NEW
)
endif
()
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
include
(
cmake_utils/release_build_by_default
)
...
...
@@ -584,6 +587,12 @@ if (NOT TARGET dlib)
if
(
DLIB_USE_CUDA
)
find_package
(
CUDA 7.5
)
if
(
CUDA_VERSION VERSION_GREATER 9.1 AND CMAKE_VERSION VERSION_LESS 3.12.2
)
# This bit of weirdness is to work around a bug in cmake
list
(
REMOVE_ITEM CUDA_CUBLAS_LIBRARIES
"CUDA_cublas_device_LIBRARY-NOTFOUND"
)
endif
()
if
(
CUDA_FOUND AND MSVC AND NOT CUDA_CUBLAS_LIBRARIES AND
"
${
CMAKE_SIZEOF_VOID_P
}
"
EQUAL
"4"
)
message
(
WARNING
"You have CUDA installed, but we can't use it unless you put visual studio in 64bit mode."
)
set
(
CUDA_FOUND 0
)
...
...
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