openvdb: find_packge(OpenVDB) failed after brew install openvdb
So I 'm using openvdb as a module of my project. Everything goes fine until I add afind_package(OpenVDB REQUIRED)
command in my CMakeLists.txt. The error message is:
CMake Error at xxx/xxx/CMakeLists.txt:8 (find_package):
By not providing "FindOpenVDB.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenVDB", but
CMake did not find one.
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.
Other modules, like GLEW can be found as expected after installed by homebrew
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 15 (6 by maintainers)
I solved this temporally by manually adding
/usr/local/lib
totarget_link_directories
/usr/local/include
totarget_include_directories
and linking as -lOpenVDB.
Looking forward to the update.