On 10/02/2018 01:12 PM, Hendrik Greving wrote:
> By the way, the new generator expression support in 3.13, is this for
> LINK_FLAGS or LINK_OPTIONS.

LINK_OPTIONS, though it should be used through target_link_options.

> And regardless of the former, will it be possible to compute a relative
> path based on generator expressions, i.e.
> file(RELATIVE $<TARGET_FILE_DIR:mytarget> $<TARGET_FILE_DIR:mytargetlib>)?

No, that level of logic is not possible with generator expressions.

I really don't think you should need to do that though.  CMake handles
RPATH in the build tree automatically.  In the install tree you can set
INSTALL_RPATH to whatever relative layout of files you use in your
install rules, which you also control.  If that is not sufficient then
please explain your use case in more detail.  I've never seen this
requirement before.

-Brad
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to