Fix linker path for MacOS
commit20889a5aee057de6c18a09cc2ff51ea461cce6a1
authorRoland Schulz <roland@utk.edu>
Thu, 22 Nov 2012 05:33:36 +0000 (22 00:33 -0500)
committerRoland Schulz <roland@utk.edu>
Thu, 22 Nov 2012 05:41:38 +0000 (22 00:41 -0500)
treeea742d077cd534284a80456fb88bf074bddbf079
parent2a27091857ae64ade24fe9f20956ac290308e0fc
Fix linker path for MacOS

- Use rpath on MacOS if supported. Makes the installation relocatable
as on Linux. Also fixes it if rpath is not available. The
INSTALL_NAME_DIR was wrong since we are using relative install.
- Fix also that BUILD_RPATH isn't needed anymore because of ORIGIN.
Avoids relinking before installation.

Change-Id: I0f2499ed8052259afe8facd1d93ea849e0cb99c8
12 files changed:
CMakeLists.txt
src/gromacs/CMakeLists.txt
src/programs/g_ana/CMakeLists.txt
src/programs/g_protonate/CMakeLists.txt
src/programs/g_x2top/CMakeLists.txt
src/programs/gmxcheck/CMakeLists.txt
src/programs/gmxdump/CMakeLists.txt
src/programs/grompp/CMakeLists.txt
src/programs/mdrun/CMakeLists.txt
src/programs/pdb2gmx/CMakeLists.txt
src/programs/tpbconv/CMakeLists.txt
src/tools/CMakeLists.txt