I was working on Qub3d which uses libCinder as a dep, and kept getting this weird error about not being able to find one of the pre-bundled cmake files.
CMake Error at dependencies/cinder/proj/cmake/modules/cinderMakeApp.cmake:65 (find_package):
Could not find a package configuration file provided by "cinder" with any
of the following names:
cinderConfig.cmake
cinder-config.cmake
Add the installation prefix of "cinder" to CMAKE_PREFIX_PATH or set
"cinder_DIR" to a directory containing one of the above files. If "cinder"
provides a separate development package or SDK, be sure it has been
installed.
So I looked around and found this solution, which boils down to running cmake ..
in (cinder_dir)/build
which somehow managed to let my project's Cmake build script to find the package cinder
.
Does find_package()
look for files that cmake ..
generates?
If anyone could tell me why this works I would appreciate it very much.