Commit e17b0825 authored by Davis King's avatar Davis King

Fix deprecation warning from new cmake

parent 38a2846d
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment