Replaced global_args with project_args to prevent build error on MinGW

master
Aadhavan Srinivasan 7 months ago
parent 5cf11ac014
commit d2dd95b7cc

@ -29,7 +29,7 @@ endif
ws2_dep = compiler.find_library('ws2_32', required: false) ws2_dep = compiler.find_library('ws2_32', required: false)
winmm = compiler.find_library('winmm', required: false) winmm = compiler.find_library('winmm', required: false)
if build_machine.system() == 'windows' 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 endif

Loading…
Cancel
Save