Re: [CMake] TARGET_LINK_LIBRARIES with full path libraries

2014-09-17 Thread Volker Pilipp
t 10:40 PM, j s wrote: > Would it be possible to set something like: > TARGET_LINK_LIBRARIES(myexe -L/opt/XXX/lib -lcurl) > in the path? > > > On Wed, Sep 17, 2014 at 9:33 AM, Nils Gladitz > wrote: > > On 09/17/2014 02:50 PM, Volker Pilipp wrote: > >> > >>

Re: [CMake] TARGET_LINK_LIBRARIES with full path libraries

2014-09-17 Thread Volker Pilipp
> Run e.g. > echo "int main() {}"|/opt/XXX/bin/g++ -xc++ - -v > The output is Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/opt/XXX Thread model: posix gcc version 4.8.2 (GCC) COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /opt/XXX/

Re: [CMake] TARGET_LINK_LIBRARIES with full path libraries

2014-09-17 Thread Volker Pilipp
On Wed, Sep 17, 2014 at 2:04 PM, Nils Gladitz wrote: > On 09/17/2014 01:50 PM, Volker Pilipp wrote: > >> I did so and found the following strange behaviour >> >> link_directories( /opt/XXX/lib ) -> no effect >> but >> link_directories( /opt/ ) -> -L/

Re: [CMake] TARGET_LINK_LIBRARIES with full path libraries

2014-09-17 Thread Volker Pilipp
17, 2014 at 3:58 AM, Nils Gladitz > wrote: > >> On 09/17/2014 12:29 PM, Volker Pilipp wrote: >> >>> I have encountered the following problem with cmake 3.0.1. >>> Under certain circumstances TARGET_LINK_LIBRARIES replaces >>> "/path/to/libXXX.so"

Re: [CMake] TARGET_LINK_LIBRARIES with full path libraries

2014-09-17 Thread Volker Pilipp
On Wed, Sep 17, 2014 at 12:58 PM, Nils Gladitz wrote: > On 09/17/2014 12:29 PM, Volker Pilipp wrote: > >> I have encountered the following problem with cmake 3.0.1. >> Under certain circumstances TARGET_LINK_LIBRARIES replaces >> "/path/to/libXXX.so" by "-

[CMake] TARGET_LINK_LIBRARIES with full path libraries

2014-09-17 Thread Volker Pilipp
I have encountered the following problem with cmake 3.0.1. Under certain circumstances TARGET_LINK_LIBRARIES replaces "/path/to/libXXX.so" by "-lXXX". The problem occurred when I used a non-standard compiler at /opt/XXX/bin/g++ and added the library /opt/XXX/lib/libXXX.so to TARGET_LINK_LIBRARIES.