Replaced global_args with project_args to prevent build error on MinGW
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user