diff --git a/SConstruct b/SConstruct index 07e4893811..6a832e00b3 100644 --- a/SConstruct +++ b/SConstruct @@ -230,7 +230,11 @@ if env['wxgl']: env['HAVE_X11'] = 0 env['HAVE_COCOA'] = 0 -env['HAVE_WX'] = conf.CheckWXConfig('2.8', wxmods, 0) +# Gui less build +if env['nowx']: + env['HAVE_WX'] = 0; +else: + env['HAVE_WX'] = conf.CheckWXConfig('2.8', wxmods, 0) # SDL backend env['USE_SDL'] = 0 @@ -253,10 +257,6 @@ if env['jittest']: conf.Define('JITTEST', env['JITTEST']) -# Gui less build -if env['nowx']: - env['HAVE_WX'] = 0; - # Creating config.h defines conf.Define('HAVE_SDL', env['HAVE_SDL']) conf.Define('USE_SDL', env['USE_SDL'])