CMake find_package: where did it find the package?
Ah ok, I found a solution here:
https://riptutorial.com/cmake/example/21128/debug-find-package---errors
Turns out there is a special debug flag to make find_package
tell you where it is searching:
cmake -D CMAKE_FIND_DEBUG_MODE=ON ..
As of CMake 3.17, the cmake
command line has native support for printing the search directories for all of the CMake find_*
commands. Use the --debug-find
flag:
cmake --debug-find ..