mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 17:49:36 +08:00
Eliminate FindCUDA cmake warning.
This commit is contained in:
parent
cc941d69a5
commit
98620b58c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user