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:
./vcpkg install openvdb
- add
find_package(openvdb CONFIG REQUIRED) to CMakeLists.txt
- See error
Expected behavior
Cmake finds openvdb package without an error.
Description
After installing and integrating the latest vcpkg, and
./vcpkg install openvdbit 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 anyof the following names:openvdbConfig.cmakeopenvdb-config.cmakeAdd 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 hasbeen 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:
./vcpkg install openvdbfind_package(openvdb CONFIG REQUIRED)to CMakeLists.txtExpected behavior
Cmake finds openvdb package without an error.