diff --git a/meson.build b/meson.build index 99bf3aff31..58164bff46 100644 --- a/meson.build +++ b/meson.build @@ -8,6 +8,7 @@ project( 'catch2', 'cpp', + default_options: ['default_library=static'], version: '3.7.1', # CML version placeholder, don't delete license: 'BSL-1.0', meson_version: '>=0.54.1', diff --git a/src/catch2/meson.build b/src/catch2/meson.build index 65be34378a..21765c4877 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,