<div dir="ltr">On Wed, Jun 18, 2014 at 10:14 AM, Sankhesh Jhaveri <span dir="ltr"><<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>


  
  

<div>
<br>
Any ideas/suggestions how to properly package Linux archive?<br>
<br></div></blockquote><div><br><br><br><div><div>This has worked for me in the past:<br><br>set(origin "$ORIGIN")<br>if (APPLE)<br>  set(origin "@executable_path")<br>endif()<br>set(CMAKE_INSTALL_RPATH "${origin}/../lib:${origin}/")<br>
<br></div>This was for a project with a typical install tree: the executables in 
bin/ and the libraries in a sibling directory named lib/.  The only 
other trick was to tell fixup_bundle() to ignore the files in the lib/ 
dir of the install tree.  I did this by defining the following function before my call to 
fixup_bundle():<br><br>function(gp_resolved_file_type_override resolved_file type_var)<br>  if(resolved_file MATCHES "\\.\\./lib")<br>    set(${type_var} "local" PARENT_SCOPE)<br>  endif()<br>endfunction()<br>
</div></div></div></div></div>