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
e17b0825
Commit
e17b0825
authored
Oct 17, 2017
by
Davis King
Browse files
Fix deprecation warning from new cmake
parent
38a2846d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+8
-4
No files found.
dlib/CMakeLists.txt
View file @
e17b0825
...
@@ -32,10 +32,14 @@ if(has_parent)
...
@@ -32,10 +32,14 @@ if(has_parent)
endif
()
endif
()
endif
()
endif
()
# Set only because there are old target_link_libraries() statements in the
if
(
CMAKE_VERSION VERSION_LESS
"3.9.0"
)
# FindCUDA.cmake file that comes with CMake that error out if the new behavior
# Set only because there are old target_link_libraries() statements in the
# is used.
# FindCUDA.cmake file that comes with CMake that error out if the new behavior
cmake_policy
(
SET CMP0023 OLD
)
# is used. In newer versions of CMake we can instead set CUDA_LINK_LIBRARIES_KEYWORD which fixes this issue.
cmake_policy
(
SET CMP0023 OLD
)
else
()
set
(
CUDA_LINK_LIBRARIES_KEYWORD PUBLIC
)
endif
()
macro
(
enable_preprocessor_switch option_name
)
macro
(
enable_preprocessor_switch option_name
)
...
...
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