From dda89663eaea83713f32a6dc88c3a29439fc7387 Mon Sep 17 00:00:00 2001 From: Sebastian Pinnau Date: Tue, 23 Jul 2019 14:17:45 +0200 Subject: [PATCH] [SCons] Add yaml-cpp to shared libraries if building with system yaml-cpp If building Cantera with system_yamlcpp=y the yaml-cpp library needs to be specified in the linker flags. Fixes #668 --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index 206d09c6c..846c1d7e5 100644 --- a/SConstruct +++ b/SConstruct @@ -1620,6 +1620,10 @@ else: linkLibs.extend(env['sundials_libs']) linkSharedLibs.extend(env['sundials_libs']) +if env['system_yamlcpp']: + linkLibs.append('yaml-cpp') + linkSharedLibs.append('yaml-cpp') + # Add LAPACK and BLAS to the link line if env['blas_lapack_libs']: linkLibs.extend(env['blas_lapack_libs'])