Skip to content

Commit 64ae95c

Browse files
committed
Fix build with -Dbuild-deprecated-api=false
Fixes #82
1 parent 49e6598 commit 64ae95c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ foreach ex : examples
2020
endforeach
2121

2222
exe_file = executable(ex_name, ex_sources,
23-
cpp_args: '-DSIGCXX_DISABLE_DEPRECATED',
23+
cpp_args: '-DSIGCXX_DISABLE_DEPRECATED=1',
2424
dependencies: sigcxx_own_dep,
2525
implicit_include_directories: false,
2626
build_by_default: build_examples

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ pkg_conf_data.set('PACKAGE_VERSION', meson.project_version())
206206
pkg_conf_data.set('SIGCXX_API_VERSION', sigcxx_api_version)
207207

208208
if not build_deprecated_api
209-
pkg_conf_data.set('SIGCXX_DISABLE_DEPRECATED', true)
209+
pkg_conf_data.set('SIGCXX_DISABLE_DEPRECATED', 1)
210210
endif
211211
pkg_conf_data.set('SIGCXX_MAJOR_VERSION', sigcxx_major_version)
212212
pkg_conf_data.set('SIGCXX_MINOR_VERSION', sigcxx_minor_version)

0 commit comments

Comments
 (0)