Make sure that wxwidgets uses the gtk2 version of the toolkit

Trying to fix an assert from src/wx/guiinit.cpp:2058
This commit is contained in:
Arthur Moore 2015-01-09 22:17:50 -05:00
parent 89e6cee8f5
commit 1dd04bc2bd
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ endif(ENABLE_OPENAL)
# adv is for wxAboutBox
# xml, html is for xrc
SET( wxWidgets_USE_LIBS xrc xml html adv gl net core base )
#Make sure we use the libwxgtk2.8 toolkit
set(wxWidgets_CUSTOM_OPTIONS "--toolkit=gtk2")
FIND_PACKAGE ( wxWidgets REQUIRED )
EXECUTE_PROCESS(COMMAND sh "${wxWidgets_CONFIG_EXECUTABLE}" --cxxflags)
INCLUDE( ${wxWidgets_USE_FILE} )