Fix and simplify rpath
authorRoland Schulz <roland@utk.edu>
Mon, 3 Feb 2014 23:19:57 +0000 (18:19 -0500)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 4 Feb 2014 18:18:36 +0000 (19:18 +0100)
commit3c3c8f72f0fcb186be3d0d77d8a9e26168cc2517
tree0d9ca20045c67b59defdc0b56787a2f0a2f09b34
parenteb2cd425d92c022ce30b1db87524a49cb40ecf87
Fix and simplify rpath

- GMXLIB was removed by 0b2344 but forgotten to change for rpath.
- CMAKE_SKIP_BUILD_RPATH and CMAKE_BUILD_WITH_INSTALL_RPATH
  default to false
- No need to relink (CMAKE_BUILD_WITH_INSTALL_RPATH=false) if
  installing in the default lib directory. Saves the relinking
  time and makes rpath work correctly if build folder is moved.
- The extra escaping isn't needed anymore. Tested with 2.8.8,
  2.8.10.2 and 2.8.12.2

Change-Id: I09cf0f9a31c2c891d2aec6ab52dd9cd1d089cb97
CMakeLists.txt