Replaced global_args with project_args to prevent build error on MinGW

This commit is contained in:
2024-03-13 15:09:48 -05:00
parent 5cf11ac014
commit d2dd95b7cc

View File

@@ -29,7 +29,7 @@ endif
ws2_dep = compiler.find_library('ws2_32', required: false)
winmm = compiler.find_library('winmm', required: false)
if build_machine.system() == 'windows'
add_global_arguments('-Wl,--subsystem,windows', '-mwindows', language: ['cpp', 'c']) # Prevent opening console when game is run
add_project_arguments('-Wl,--subsystem,windows', '-mwindows', language: ['cpp', 'c']) # Prevent opening console when game is run
endif