[cmake-developers] CMAKE_INSTALL_PREFIX vs CMAKE_SYSROOT ?

Brad King brad.king at kitware.com
Mon Jul 8 09:31:11 EDT 2013


On 7/8/2013 9:06 AM, Stephen Kelly wrote:
> I was thinking of cases where the install DESTINATION is relative:
> 
>  install(TARGETS foo ... DESTINATION lib)
> 
> If CMAKE_HOST_INSTALL_PREFIX is defined, foo is installed to 
> 
>  ${CMAKE_HOST_INSTALL_PREFIX}/lib
> 
> otherwise 
> 
>  ${CMAKE_INSTALL_PREFIX}/lib

Yes, but how does install() know that "foo" is for the host
or the target?

-Brad



More information about the cmake-developers mailing list