hybrid-lambda: fix build tests (#30214)

This commit is contained in:
Qian Jianhua 2022-06-14 19:46:23 +08:00 committed by GitHub
parent 19ea24d2bd
commit d76f184430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,10 +35,13 @@ class HybridLambda(AutotoolsPackage):
depends_on(Boost.with_default_variants)
depends_on('cppunit', type='test')
build_directory = 'src'
@run_after('configure')
def change_install_option_in_makefile(self):
with working_dir('src'):
filter_file(r'INSTALL = /bin/install -c',
'INSTALL = /bin/install -C', 'Makefile')
@on_package_attributes(run_tests=True)
def setup_build_environment(self, env):
# build testcases with cppunit
env.prepend_path('LD_LIBRARY_PATH', self.spec['cppunit'].libs.directories[0])