Skip to content

openvdb: Could not find a package configuration file #12271

@Fedr

Description

@Fedr

Description
After installing and integrating the latest vcpkg, and
./vcpkg install openvdb
it reports success:
find_package(openvdb CONFIG REQUIRED)
# Note: 1 target(s) were omitted.
target_link_libraries(main PRIVATE Maya Blosc::blosc CppUnit::cppunit Jemalloc::jemalloc)

But after I add this find_package line in my CMakeLists.txt I get an error from cmake:
CMake Error at /home/fed/vcpkg/scripts/buildsystems/vcpkg.cmake:405 (_find_package):
Could not find a package configuration file provided by "openvdb" with any
of the following names:

openvdbConfig.cmake
openvdb-config.cmake

Add the installation prefix of "openvdb" to CMAKE_PREFIX_PATH or set
"openvdb_DIR" to a directory containing one of the above files. If
"openvdb" provides a separate development package or SDK, be sure it has
been installed.

Find for other packages installed by vcpkg works fine, so this is something openvdb specific.

Environment
Ubuntu 18.04 LTS inside Windows Subsystem Linux

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install openvdb
  2. add find_package(openvdb CONFIG REQUIRED) to CMakeLists.txt
  3. See error

Expected behavior
Cmake finds openvdb package without an error.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions