Allow find_libraries to accept lists or strings (#3363)
* Allow find_libraries to accept lists or strings * Convert one more example from list to string
This commit is contained in:
@@ -60,7 +60,7 @@ class Openspeedshop(Package):
|
||||
"""
|
||||
|
||||
homepage = "http://www.openspeedshop.org"
|
||||
url = "https://github.com/OpenSpeedShop"
|
||||
url = "https://github.com/OpenSpeedShop"
|
||||
version('2.2', '16cb051179c2038de4e8a845edf1d573')
|
||||
# Use when the git repository is available
|
||||
version('2.3', branch='master',
|
||||
@@ -230,7 +230,7 @@ def setup_environment(self, spack_env, run_env):
|
||||
# set the DYNINSTAPI_RT_LIB library which is
|
||||
# required for OpenSpeedShop to find loop level
|
||||
# performance information
|
||||
dyninst_libdir = find_libraries(['libdyninstAPI_RT'],
|
||||
dyninst_libdir = find_libraries('libdyninstAPI_RT',
|
||||
root=self.spec['dyninst'].prefix,
|
||||
shared=True, recurse=True)
|
||||
|
||||
@@ -238,7 +238,7 @@ def setup_environment(self, spack_env, run_env):
|
||||
run_env.set('DYNINSTAPI_RT_LIB', dyninst_libdir)
|
||||
|
||||
# Find openspeedshop library path
|
||||
oss_libdir = find_libraries(['libopenss-framework'],
|
||||
oss_libdir = find_libraries('libopenss-framework',
|
||||
root=self.spec['openspeedshop'].prefix,
|
||||
shared=True, recurse=True)
|
||||
run_env.prepend_path('LD_LIBRARY_PATH',
|
||||
|
Reference in New Issue
Block a user