[go: up one dir, main page]

Fixed CMP0146 warning with check for CMake version for backwards compatibility.

Reference issue

#2768 (closed)

What does this implement/fix?

This merge request fixes a CMake warning with regards to CMP0146 by switching from the use of find_package(CUDA) to check_language(CUDA) as proposed in the CMake documentation. To maintain backwards compatibility with versions of CMake that do not provide CMake's first-class CUDA language support (3.9-), a version check was implemented which uses the find_package module for versions less than 3.10.

Merge request reports

Loading