Skip to content

Commit 6b810a6

Browse files
authored
Set PL_STATIC when building static library
1 parent 5950473 commit 6b810a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ endif
239239
### Main library build process
240240
inc = include_directories('./include')
241241
lib = library('placebo', sources,
242-
c_args: ['-DPL_EXPORT'],
242+
c_args: get_option('default_library') == 'static' ? ['-DPL_STATIC'] : ['-DPL_EXPORT'],
243243
install: true,
244244
dependencies: build_deps + glad_dep,
245245
soversion: apiver,

0 commit comments

Comments
 (0)