Re: [CMake] Full absolute path as RPATH in build tree

2016-12-05 Thread clinton
If you want the INSTALL_NAME_DIR to have effect in the build tree, you also need set_target_properties(EMsoftLib PROPERTIES BUILD_WITH_INSTALL_RPATH ON) Clint - On Dec 5, 2016, at 8:22 PM, Michael Jackson mike.jack...@bluequartz.net wrote: > I have this: > > if(APPLE AND

Re: [CMake] Full absolute path as RPATH in build tree

2016-12-05 Thread Michael Jackson
I have this: if(APPLE AND BUILD_SHARED_LIBS) set_target_properties(EMsoftLib PROPERTIES MACOSX_RPATH FALSE) set_target_properties(EMsoftLib PROPERTIES INSTALL_NAME_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") endif() -- Michael A. Jackson 400 S. Pioneer Blvd Owner, President

Re: [CMake] Full absolute path as RPATH in build tree

2016-12-05 Thread clinton
Do you want the library identification to be a full path? set_target_properties(foo PROPERTIES MACOSX_RPATH OFF) Clint - On Dec 5, 2016, at 7:38 PM, Michael Jackson mike.jack...@bluequartz.net wrote: > what combinations of RPATH variables do I need to set to get a full, > absolute path to

[CMake] Full absolute path as RPATH in build tree

2016-12-05 Thread Michael Jackson
what combinations of RPATH variables do I need to set to get a full, absolute path to a build library in my build tree? THis is on macOS 10.10.5 and cmake 3.5 and above. I have tried all sorts of combinations and I either get just the library name or @rpath/library.dylib neither of which is