Re: [CMake] CLANG vs GCC when linking executables

2017-05-12 Thread Patrick Boettcher
On Fri, 12 May 2017 17:30:16 +0200 Patrick Boettcher wrote: > The problem only occurs when the compiler is coming from a custom > build from a custom path. Running > > CXX=clang++ cmake > > makes cmake generate the correct link options. > > CXX=/local/path/bin/clang++ cmake > > makes

Re: [CMake] CLANG vs GCC when linking executables

2017-05-12 Thread Patrick Boettcher
On Fri, 12 May 2017 16:57:25 +0200 Patrick Boettcher wrote: > Hi list, > > I'm trying to link an executable with a locally build and imported > dynamic library. The link-code generated by CMake differs when > using GCC and Clang in regards to the rpath-options: > > This is my cmake-code for im

[CMake] CLANG vs GCC when linking executables

2017-05-12 Thread Patrick Boettcher
Hi list, I'm trying to link an executable with a locally build and imported dynamic library. The link-code generated by CMake differs when using GCC and Clang in regards to the rpath-options: This is my cmake-code for importing the library (this code is actually generated by using export() )