CMAKE_INSTALL_RPATH is semicolon-separated. (#6577)

This commit is contained in:
Sergey Kosukhin 2017-12-06 08:07:11 +01:00 committed by Massimiliano Culpo
parent 24d60a95c0
commit bcb1630e39

View File

@ -144,7 +144,7 @@ def _std_args(pkg):
# Set up CMake rpath
args.append('-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE')
rpaths = ':'.join(spack.build_environment.get_rpaths(pkg))
rpaths = ';'.join(spack.build_environment.get_rpaths(pkg))
args.append('-DCMAKE_INSTALL_RPATH:STRING={0}'.format(rpaths))
# CMake's find_package() looks in CMAKE_PREFIX_PATH first, help CMake
# to find immediate link dependencies in right places: