On Fri, 12 May 2017 17:30:16 +0200 Patrick Boettcher <patrick.boettc...@posteo.de> wrote: > The problem only occurs when the compiler is coming from a custom > build from a custom path. Running > > CXX=clang++ cmake <src-path> > > makes cmake generate the correct link options. > > CXX=/local/path/bin/clang++ cmake <src-path> > > makes cmake generate wrong link options (without RPATH). > > Seems to be related the compiler-ID which is wrongly determined or > something like that.
I continued a bit more, it turns out that the placeholder <LINK_LIBRARIES> (using the link.txt) does not contain the rpath-options when linking with my locally generated compiler but it present when using system compiler. Where is LINK_LIBRARIES filled in? What option, features makes cmake insert -Wl,rpath or not (as in my case) -- Patrick. -- 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: http://public.kitware.com/mailman/listinfo/cmake