[CMake] find_package and CMAKE_INSTALL_PREFIX

Maik Beckmann beckmann.maik at googlemail.com
Tue Oct 19 03:48:36 EDT 2010


2010/10/19 Michael Wild <themiwi at gmail.com>:
>
> While I agree that it should be added to the documentation of find_package, it is what most people would expect (except when they get bitten by it). Most people would be pretty stumped if CMake wouldn't search in the installation prefix.
>
> My 2 cents...

I did expect that CMAKE_INSTALL_PREFIX is searched before the sytem
prefix, because usually an explicit setting done by the user overrules
a default.

But I can understand that this might cause trouble when creating
packages for Linux distros.


More information about the CMake mailing list