[CMake] find_package and CMAKE_INSTALL_PREFIX
Michael Wild
themiwi at gmail.com
Tue Oct 19 03:58:48 EDT 2010
On 19. Oct, 2010, at 9:48 , Maik Beckmann wrote:
> 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.
Oh, wait, I'm sorry. I misread your message. I agree with you; I would expect CMAKE_INSTALL_PREFIX to be searched first.
Michael
--
There is always a well-known solution to every human problem -- neat, plausible, and wrong.
H. L. Mencken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101019/70c9ab11/attachment.pgp>
More information about the CMake
mailing list