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
4a79d07b
Commit
4a79d07b
authored
Feb 29, 2016
by
Daniel Crispell
Browse files
try_compile needs cudnn cmake vars explicitly passed
parent
d207348a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+2
-1
No files found.
dlib/CMakeLists.txt
View file @
4a79d07b
...
...
@@ -467,7 +467,8 @@ if (NOT TARGET dlib)
else
()
message
(
STATUS
"Checking if you have the right version of cuDNN installed."
)
try_compile
(
cudnn_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
${
PROJECT_SOURCE_DIR
}
/dnn/test_for_cudnn cudnn_test
)
${
PROJECT_SOURCE_DIR
}
/dnn/test_for_cudnn cudnn_test
CMAKE_FLAGS -Dcudnn=
${
cudnn
}
-Dcudnn_include=
${
cudnn_include
}
)
if
(
cudnn_test_compile_worked
)
message
(
STATUS
"Found cuDNN: "
${
cudnn
}
)
else
()
...
...
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