diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index fb9ab57d..7cac877d 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -35,7 +35,7 @@ endif(ENABLE_OPENAL) # 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") +list(APPEND wxWidgets_CONFIG_OPTIONS --version=2.8 --toolkit=gtk2) FIND_PACKAGE ( wxWidgets REQUIRED ) EXECUTE_PROCESS(COMMAND sh "${wxWidgets_CONFIG_EXECUTABLE}" --cxxflags) INCLUDE( ${wxWidgets_USE_FILE} )