On 04/16/2013 10:41 AM, Stephen Kelly wrote: > That means that the include directories of an upstream package will have to > prefix each path with "${CMAKE_FIND_ROOT_PATH}" in order to be useful in > both cross compiling contexts and non-cross-compile-but-direct-on-target > contexts. > > We might be able to generate something for INTERFACE_INCLUDE_DIRECTORIES of > exported targets. Pity we didn't have cases like this in mind when designing > that feature.
Shouldn't all these paths be computed relative to the install prefix, which is computed relative to the package config or targets file location? See an example here: http://www.cmake.org/Bug/view.php?id=14041 that does it for target locations. The include paths should be the same. If an $<INSTALL_INTERFACE:...> value uses $<INSTALL_PREFIX> should it not work already? -Brad -- 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