From 2943330e8472f355e805a154bc7c28863904f9aa Mon Sep 17 00:00:00 2001 From: Stepland <10530295-Buggyroom@users.noreply.gitlab.com> Date: Fri, 28 Jul 2023 15:01:59 +0200 Subject: [PATCH] ok actually this was the way to do windows GUI things in meson --- meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 7b045a6..66d8f86 100644 --- a/meson.build +++ b/meson.build @@ -52,10 +52,6 @@ foreach lib, lib_sources : include_sources sources += lib_sources endforeach -if target_machine.system() == 'windows' - add_project_arguments('-mwindows', language : 'cpp') -endif - executable( 'FEIS', sources: sources, @@ -64,4 +60,5 @@ executable( inc, configuration_inc, ], + win_subsystem: 'windows' # mark as GUI app when compiling for windows, hides the console amongst other things )