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. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers