From 98620b58c307cc60fc50ee08364e3fe0daa1e701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Thu, 29 Feb 2024 20:49:41 +0000 Subject: [PATCH] Eliminate FindCUDA cmake warning. --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8477d8122..314c72fe8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,15 @@ if (POLICY CMP0090) endif (NOT DEFINED CMAKE_EXPORT_PACKAGE_REGISTRY) endif (POLICY CMP0090) +# Disable warning about find_package(CUDA). +# CUDA language support is lacking for clang as the CUDA compiler +# until at least cmake version 3.18. Even then, there seems to be +# issues on Windows+Ninja in passing build flags. Continue using +# the "old" way for now. +if (POLICY CMP0146) + cmake_policy(SET CMP0146 OLD) +endif () + project(Eigen3) # Remove this block after bumping CMake to v3.21.0