Merge pull request #24083 from cudawarped:cuda_cmake_cmp0146

`cuda`: suppress CMP0146 warning
This commit is contained in:
Alexander Smorkalov 2023-08-01 10:37:35 +03:00 committed by GitHub
commit 6791284994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,10 @@ if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW) # CMake 3.13+: option() honors normal variables.
endif()
if(POLICY CMP0146)
cmake_policy(SET CMP0146 OLD) # CMake 3.27+: use CMake FindCUDA if available.
endif()
#
# Configure OpenCV CMake hooks
#