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
0ab5b70e
Commit
0ab5b70e
authored
Sep 23, 2018
by
Davis King
Browse files
Work around a bug in cmake with regard to cuda 10
parent
782ade07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+9
-0
No files found.
dlib/CMakeLists.txt
View file @
0ab5b70e
...
@@ -30,6 +30,9 @@ if (POLICY CMP0063)
...
@@ -30,6 +30,9 @@ if (POLICY CMP0063)
# ignore it for backwards compatibility.
# ignore it for backwards compatibility.
cmake_policy
(
SET CMP0063 NEW
)
cmake_policy
(
SET CMP0063 NEW
)
endif
()
endif
()
if
(
POLICY CMP0075
)
cmake_policy
(
SET CMP0075 NEW
)
endif
()
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
include
(
cmake_utils/release_build_by_default
)
include
(
cmake_utils/release_build_by_default
)
...
@@ -584,6 +587,12 @@ if (NOT TARGET dlib)
...
@@ -584,6 +587,12 @@ if (NOT TARGET dlib)
if
(
DLIB_USE_CUDA
)
if
(
DLIB_USE_CUDA
)
find_package
(
CUDA 7.5
)
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"
)
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."
)
message
(
WARNING
"You have CUDA installed, but we can't use it unless you put visual studio in 64bit mode."
)
set
(
CUDA_FOUND 0
)
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