[cmake-developers] CMAKE_INSTALL_PREFIX vs CMAKE_SYSROOT ?

Brad King brad.king at kitware.com
Mon Jul 8 08:58:38 EDT 2013


On 07/04/2013 04:29 AM, Stephen Kelly wrote:
>> How do install() invocations distinguish which prefix to use?
> 
> I think install invokations use CMAKE_HOST_INSTALL_PREFIX for everything if 
> present, and CMAKE_INSTALL_PREFIX otherwise.

Before I answer the rest of the message I'd like clarification here.
Do you mean that the install() invocations have

 install(TARGETS ... DESTINATION ${CMAKE_HOST_INSTALL_PREFIX}/lib)

?  Or will install() somehow know whether a build target is for
host or target architecture?

-Brad



More information about the cmake-developers mailing list