From 0175b812a27fbfe5146130794c448e675122cf4e Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sun, 18 Aug 2024 17:24:29 +0200 Subject: [PATCH] Fixed Catch2 recipe. --- recipes/Catch2/recipe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/Catch2/recipe.py b/recipes/Catch2/recipe.py index f5f6e71..b59109f 100644 --- a/recipes/Catch2/recipe.py +++ b/recipes/Catch2/recipe.py @@ -9,11 +9,12 @@ def _git_cook(env: Environment, repo) -> dict: lib_name = { 'debug': 'Catch2d' }.get(env['BUILD_TYPE'], 'Catch2') - libs = [lib_name] + libs = [] if not env.get('CATCH2_OWN_MAIN'): libs.append({ 'debug': 'Catch2Maind' }.get(env['BUILD_TYPE'], 'Catch2Main')) + libs.append(lib_name) return { 'CPPPATH': build_result['CPPPATH'], 'LIBS': [env.FindLib(lib, paths=build_result['LIBPATH']) for lib in libs]