[cmake-developers] CMAKE_INSTALL_PREFIX vs CMAKE_SYSROOT ?

Stephen Kelly steveire at gmail.com
Mon Jul 8 11:22:23 EDT 2013


Brad King wrote:

> On 7/8/2013 9:31 AM, Brad King wrote:
>> Yes, but how does install() know that "foo" is for the host
>> or the target?
> 
> or do you mean that CMAKE_HOST_INSTALL_PREFIX, if defined at all,
> completely replaces CMAKE_INSTALL_PREFIX for all install rules?

Yes for install rules, but with some exceptions I think when used in 
calculations.

For things like the logic in 

 cmExportInstallFileGenerator::GenerateMainFile

about the relocatable-/usr/lib-stuff, I think CMAKE_INSTALL_PREFIX should 
still be used.

There may be other cases.

Thanks,

Steve.





More information about the cmake-developers mailing list