Skip to content

zed-config.cmake still uses deprecated find_package(CUDA) call #756

Description

@bash-pipe

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

find_package(CUDA) has been deprecated since CMake version 3.10 and disallowed by policy CMP0146 since CMake 3.27.

Steps to Reproduce

  1. Add find_package(ZED REQUIRED) to project CMakeLists
    2.Load CMake project using CMake version > 3.10

Expected Result

CMake should successfully load the ZED package

Actual Result

CMake outputs error message
CMake Error at /usr//lib/cmake/CUDA/FindCUDA.cmake:567 (message):
The FindCUDA module has been removed by policy CMP0146.

ZED Camera model

ZED

Environment

OS: Ubuntu 24.04
Platform: x86

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions