title: Creating binary with CMake removes runtime path
body: <p>I am using CMake to build a program on linux. The program compiles successfully and runs from the project build directory. The program is linked with a custom library in the directory <code>${HOME}/build/lib</code></p>
  
  <p>I have an install stage with:</p>
  
  <pre><code>install(TARGETS ProgName RUNTIME DESTINATION bin)
  </code></pre>
  
  <p>When I run <code>make install</code> the program gets put in the correct place, but the <code>cmake</code> installer removes the runtime path from the binary.</p>
  
  <pre><code>-- Install configuration: "Debug"
  -- Installing: *binary name*
  -- Removed runtime path from "*binary name*"
  </code></pre>
  
  <p>I have read articles on the internet discussing the misuse of the <code>LD_LIBRARY_PATH</code> variable so I like to keep mine limited to system library locations if possible. I am not sysadmin so I cannot add the location to the default linker search path either. </p>
  
  <p>Does anyone know how I can keep the development-time linking paths when installing or at least customising which paths are added to the runtime? </p>
  
  <p>Cheers</p>