Re: [CMake] RPATH for external library

2017-05-18 Thread Pawel Veselov
>> > If I understand things correctly, pkg-config does not return the >> > RPATH-arguments necessary to link with. IOW, if used in a GNU >> > Makefile you would also need to add these by yourself, right? So >> > your problem is not a cmake-problem. >> IMHO it's not fair to say - if it's not

Re: [CMake] RPATH for external library

2017-05-18 Thread Patrick Boettcher
On Wed, 17 May 2017 17:13:13 -0700 Pawel Veselov wrote: > On Wed, May 17, 2017 at 2:55 AM, Patrick Boettcher > > My reason of preferring pkg-config is > because it may have all > >> other kind of stuff in it that the maintainer thought is

Re: [CMake] RPATH for external library

2017-05-17 Thread Pawel Veselov
On Wed, May 17, 2017 at 2:55 AM, Patrick Boettcher > My reason of preferring pkg-config is because it may have all >> other kind of stuff in it that the maintainer thought is necessary. >> I'd imagine some .pc files export a boatload of flags for all 3 >> stages, and I

Re: [CMake] RPATH for external library

2017-05-17 Thread Patrick Boettcher
On Tue, 16 May 2017 12:32:11 -0700 Pawel Veselov wrote: > > I was once in a situation where I could have used pkg-config with a > > custom path to have pkg-config look for the .pc-file. I then > > switched to find_library with the custom-path slightly adapted and > > it

Re: [CMake] RPATH for external library

2017-05-16 Thread Pawel Veselov
On Tue, May 16, 2017 at 12:09 PM, Patrick Boettcher wrote: > On Tue, 16 May 2017 11:50:47 -0700 > Pawel Veselov wrote: > >> >> I'm trying to make CMake add to the linker RPATH automatically. >> >> There is a library that is installed in a

Re: [CMake] RPATH for external library

2017-05-16 Thread Patrick Boettcher
On Tue, 16 May 2017 11:50:47 -0700 Pawel Veselov wrote: > >> I'm trying to make CMake add to the linker RPATH automatically. > >> There is a library that is installed in a non-default location. > >> I'm discovering the library using PkgConfig (custom > >>

Re: [CMake] RPATH for external library

2017-05-16 Thread Pawel Veselov
>> I'm trying to make CMake add to the linker RPATH automatically. >> There is a library that is installed in a non-default location. >> I'm discovering the library using PkgConfig (custom >> CMAKE_APPBUNDLE_PATH) and add the library build options to the >> LINK_FLAGS (using set_property). >

Re: [CMake] RPATH for external library

2017-05-16 Thread Patrick Boettcher
On Mon, 15 May 2017 13:32:15 -0700 Pawel Veselov wrote: > Hello. > > I'm trying to make CMake add to the linker RPATH automatically. > There is a library that is installed in a non-default location. > I'm discovering the library using PkgConfig (custom >

[CMake] RPATH for external library

2017-05-15 Thread Pawel Veselov
Hello. I'm trying to make CMake add to the linker RPATH automatically. There is a library that is installed in a non-default location. I'm discovering the library using PkgConfig (custom CMAKE_APPBUNDLE_PATH) and add the library build options to the LINK_FLAGS (using set_property). I then set