[CMake] [cmake-developers] Debugging find_package() search behavior?

Brad King brad.king at kitware.com
Tue Aug 29 10:33:57 EDT 2017


On 08/29/2017 10:27 AM, Robert Dailey wrote:
> I'm relying on the two variables above to control this behavior, but
> CMAKE_INSTALL_PREFIX doesn't work well for both purposes.

Use CMAKE_PREFIX_PATH, not CMAKE_INSTALL_PREFIX, to control
the set of prefixes that find commands search.

-Brad


More information about the CMake mailing list