Skip to content

[BUG] cvcuda CMake package does not find nvcv_types and permits incompatible 0.x versions #295

Description

@bhashemian

Describe the bug
CV-CUDA v0.17.0 ships cvcuda and nvcv_types in the same development package but exports them as separate CMake packages. The generated cvcuda-config.cmake references target nvcv_types without discovering it, so find_package(cvcuda ...) fails unless the consumer finds nvcv_types first.

Both generated package version files use SameMajorVersion. For a 0.x project, this allows a later minor release to satisfy an earlier 0.x request, despite v0.17 documenting C and C++ compatibility-breaking changes.

Steps/Code to reproduce bug
Install or stage the v0.17.0 development package, then configure this minimal project:

cmake_minimum_required(VERSION 3.20)
project(cvcuda_consumer LANGUAGES CXX)

find_package(cvcuda 0.17 CONFIG REQUIRED)
cmake -S . -B build

Configuration fails with:

The following imported targets are referenced, but are missing: nvcv_types

The following order succeeds, while the reverse order still fails:

find_package(nvcv_types 0.17 CONFIG REQUIRED)
find_package(cvcuda 0.17 CONFIG REQUIRED)

A version request for 0.16 also accepts the installed v0.17.0 package when both packages are found in that order.

Expected behavior
find_package(cvcuda ...) should discover its required nvcv_types package itself, for example through a package-config wrapper using find_dependency. Consumers should not need two calls in a specific order.

Different 0.x minor releases should not be treated as compatible when compatibility is not guaranteed. SameMinorVersion or an equivalent explicit policy would match the documented release behavior.

Environment overview (please complete the following information)

  • Environment location: Bare-metal
  • Method of cuDF install: Not applicable; CV-CUDA v0.17.0 configured from source

Environment details
Relevant output from cvcuda/print_env.sh:

CV-CUDA commit: 5ac8708bde57f8cf1c8d19443f6384875e86157c (v0.17.0)
OS: Ubuntu 24.04.4 LTS, aarch64
CMake: 3.28.3
CUDA toolkit: 13.0.88

The failure occurs while loading generated CMake package metadata, before compilation or linking.

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions