[CMake] Linking imported library to ExternalProject

2017-05-01 Thread Laurent Chauvin
Hello, I'm trying to create a superbuild for my project, which require nifticlib library. I am able to automatically download and compile it, as well as import created libraries, however, I'm not sure how can I link it with another external project? Here is my CMake (the relevant part): message(

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Laurent Chauvin
MyLibrary-install directory). That's why the link was keep failing. Is there a way to automatically reinstall when recompiling in Cmake ? Thank you very much. -Laurent On Wed, Sep 4, 2013 at 2:16 PM, Clinton Stimpson wrote: > On Wednesday, September 04, 2013 01:22:11 PM Laurent Chauv

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Laurent Chauvin
12:48:41 PM Laurent Chauvin wrote: > > Yes I'm using 2.8.12-rc2 for the library and the example. > > > > But my example is not in the same directory as my library. > > Neither was my example. > > > > > I can see in your example you specify the full pa

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Laurent Chauvin
2013 at 12:26 PM, Clinton Stimpson wrote: > On Wednesday, September 04, 2013 12:02:55 PM Laurent Chauvin wrote: > > Thank you for you help Clint. > > > > I actually relinked, but as you said I still had the LINK_DIRECTORIES. > > However, if I remove it, I have a lin

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Laurent Chauvin
much. -Laurent On Wed, Sep 4, 2013 at 11:30 AM, Laurent Chauvin wrote: > Thank you very much for your answer. > > I will try to use the MACOSX_RPATH. > > However, I have some questions. As the flag suggests, it's only for mac. > Is there anything similar for Linux (and

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Laurent Chauvin
the library ? Thank you. -Laurent On Wed, Sep 4, 2013 at 11:59 AM, Clinton Stimpson wrote: > On Wednesday, September 04, 2013 11:53:45 AM Laurent Chauvin wrote: > > Hello, > > > > I just tried to set the MACOSX_RPATH 1 in the top CMakeLists of MyLib, > and > > when I

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Laurent Chauvin
k you very much. -Laurent On Wed, Sep 4, 2013 at 10:57 AM, Clinton Stimpson wrote: > On Tuesday, September 03, 2013 09:47:45 PM Laurent Chauvin wrote: > > Hello everyone, > > > > I'm working on a library, and I would like the users be able to create > their >

[CMake] Absolute Path linking library

2013-09-03 Thread Laurent Chauvin
Hello everyone, I'm working on a library, and I would like the users be able to create their own program and liking to my library (by specifying path in cmake). I created the library and an example to test it. Everything compiles. However, when I try to run my example I have this error: MyExam