summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Leuenberger <dimstar@opensuse.org>2023-03-10 18:02:40 +0100
committerJan-Michael Brummer <jan.brummer@tabos.org>2023-03-27 16:31:58 +0200
commit4b883bf6dde14b655b251f3d1db9dce6f2f32f56 (patch)
treee47ea1827f2f7b00ced7aba5cd8062dd2c0ab46e
parentc23a1345e9c75a0e1ae7d5d5affcc6af5df24d38 (diff)
downloadlibproxy-git-4b883bf6dde14b655b251f3d1db9dce6f2f32f56.tar.gz
build: fix build without curl (#70)
config.set10(HAVE_CURL, boolean) always defines HAVE_CURL, with values 0/1. This is incompatible with #ifdef HAVE_CURL, as even a value of 0 is defined. Rather use config.set(HAVE_CURL, boolean) which results in #define/#undefine based on the boolean.
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 96f22fe..695c3df 100644
--- a/meson.build
+++ b/meson.build
@@ -120,7 +120,7 @@ build_dbus = get_option('dbus').disable_auto_if(['window', 'darwin'].contains(ho
config_h = configuration_data()
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
config_h.set_quoted('PX_PLUGINS_DIR', px_plugins_dir)
-config_h.set10('HAVE_CURL', get_option('curl'))
+config_h.set('HAVE_CURL', get_option('curl'))
configure_file(output: 'config.h', configuration: config_h)
subdir('src')
@@ -142,4 +142,4 @@ summary({
hook = run_command(join_paths(meson.project_source_root(), 'data/install-git-hook.sh'), check: false)
if hook.returncode() == 0
message(hook.stdout().strip())
-endif \ No newline at end of file
+endif