I'm playing with some of the new cmake 2.8.11 features and an example I saw had
this:
set_property(TARGET foo PROPERTY
INTERFACE_INCLUDE_DIRECTORIES
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR}>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include>"
)
I can see it put the expanded version of "${CMAKE_INSTALL_PREFIX}/include" in
my export file, but I want it to be relocatable. For example, if I use the
CPack ZIP generator, the files can be unzipped anywhere.
If I replace it with "$<INSTALL_INTERFACE:include>" , it complains about it
being a relative path.
Why is a relative path disallowed for INSTALL_INTERFACE? Should that be
figured out for me? Maybe it could put ${_IMPORT_PREFIX} in for me if it was a
relative path.
Clint
--
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://www.cmake.org/mailman/listinfo/cmake