########################################################################
# Specify install locations and which subdirectories to process #
########################################################################
-set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+if ( DEFINED LIB )
+ set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${LIB}")
+else()
+ set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+endif()
set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)
set(DATA_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/gromacs)
set(MAN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/man)
tmppath=""
for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do
if test "$i" != "$GMXLDLIB"; then
+ if test ${tmppath} == ""; then
+ tmppath=$i
+ else
tmppath=${tmppath}:$i
fi
+ fi
done
LD_LIBRARY_PATH=$tmppath
# remove previous gromacs part from ld_library_path
set tmppath = ""
foreach i ( `echo $LD_LIBRARY_PATH | sed "s/:/ /g"` )
- if ( "$i" != "$GMXLDLIB" ) set tmppath = "${tmppath}:$i"
+ if ( "$i" != "$GMXLDLIB" ) then
+ if ("${tmppath}" == "") then
+ set tmppath = "$i"
+ else
+ set tmppath = "${tmppath}:$i"
+ endif
+ endif
end
setenv LD_LIBRARY_PATH $tmppath
tmppath=""
for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do
if test "$i" != "$GMXLDLIB"; then
+ if test ${tmppath} == ""; then
+ tmppath=$i
+ else
tmppath=${tmppath}:$i
fi
+ fi
done
LD_LIBRARY_PATH=$tmppath