[cmake-developers] CMAKE_INSTALL_PREFIX vs CMAKE_SYSROOT ?
Stephen Kelly
steveire at gmail.com
Mon Jul 8 11:17:50 EDT 2013
Brad King wrote:
> 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?
Currently it can only be one or the other. For future host+target builds, I
think that question is best addressed in the other thread about multiple
toolchains.
Thanks,
Steve.
More information about the cmake-developers
mailing list