Skip to content

Commit

Permalink
Use library() instead of static_library()
Browse files Browse the repository at this point in the history
Build type will be set by default_library, which default to static.
However, shared libraries can be built, by passing -Ddefault_library=shared
  • Loading branch information
Colum31 authored Oct 11, 2024
1 parent e9c36da commit c8b394e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/catch2/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit c8b394e

Please sign in to comment.