From 08d457edcf2003da2955098a46898d6af98bf86a Mon Sep 17 00:00:00 2001 From: cudawarped <12133430+cudawarped@users.noreply.github.com> Date: Tue, 1 Aug 2023 09:15:31 +0300 Subject: [PATCH] cuda: suppress CMP0146 Warning --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ceeb8b8d7d..4dbcab578b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 #