From c8b394e6cf21e3aa5154a203c803ba9acfe0c31f Mon Sep 17 00:00:00 2001 From: Daniel <19858862+Colum31@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:47:19 +0200 Subject: [PATCH] Use library() instead of static_library() Build type will be set by default_library, which default to static. However, shared libraries can be built, by passing -Ddefault_library=shared --- src/catch2/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catch2/meson.build b/src/catch2/meson.build index 65be3437..21765c48 100644 --- a/src/catch2/meson.build +++ b/src/catch2/meson.build @@ -351,7 +351,7 @@ if ((host_machine.system() == 'android') or catch2_dependencies += log_dep endif -catch2 = static_library( +catch2 = library( 'Catch2', sources, dependencies: catch2_dependencies, @@ -371,7 +371,7 @@ pkg.generate( url: 'https://github.com/catchorg/Catch2', ) -catch2_with_main = static_library( +catch2_with_main = library( 'Catch2Main', 'internal/catch_main.cpp', link_with: catch2,