From 325dbf808bce6c42580deda554076f56f92282fe Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 26 Apr 2024 08:35:34 -0400 Subject: [PATCH] Nothing actually works as advertised in Meson. --- sfmldemo/meson.build | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sfmldemo/meson.build b/sfmldemo/meson.build index 1f76f00..f834a04 100644 --- a/sfmldemo/meson.build +++ b/sfmldemo/meson.build @@ -1,11 +1,8 @@ project('sfmldemo', 'cpp', - default_options: ['cpp_std=c++17']) - -if host_machine.system() == 'windows' - defaults = ['library_default=static'] -else - defaults = [] -endif + default_options: [ + 'cpp_std=c++17', + 'default_library=static' + ]) dependencies = [ dependency('sfml'), @@ -16,5 +13,4 @@ dependencies = [ executable('sfmldemo', 'main.cpp', win_subsystem: 'windows', cpp_args: '-DFMT_HEADER_ONLY', - override_options: defaults, dependencies: dependencies)