Add support for GTK4 to CMake build too
Closes https://github.com/wxWidgets/wxWidgets/pull/1643
This commit is contained in:
@@ -24,11 +24,11 @@ elseif(APPLE AND IPHONE)
|
||||
set(wxPLATFORM OSX)
|
||||
elseif(APPLE)
|
||||
set(wxDEFAULT_TOOLKIT osx_cocoa)
|
||||
set(wxTOOLKIT_OPTIONS osx_cocoa gtk2 gtk3 qt)
|
||||
set(wxTOOLKIT_OPTIONS osx_cocoa gtk2 gtk3 gtk4 qt)
|
||||
set(wxPLATFORM OSX)
|
||||
elseif(UNIX)
|
||||
set(wxDEFAULT_TOOLKIT gtk2)
|
||||
set(wxTOOLKIT_OPTIONS gtk2 gtk3 motif qt)
|
||||
set(wxTOOLKIT_OPTIONS gtk2 gtk3 gtk4 motif qt)
|
||||
set(wxPLATFORM UNIX)
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported platform")
|
||||
@@ -72,7 +72,9 @@ if(UNIX AND NOT APPLE AND NOT WIN32)
|
||||
endif()
|
||||
|
||||
if(WXGTK)
|
||||
if(WXGTK3)
|
||||
if(WXGTK4)
|
||||
set(gtk_lib GTK4)
|
||||
elseif(WXGTK3)
|
||||
set(gtk_lib GTK3)
|
||||
elseif(WXGTK2)
|
||||
set(gtk_lib GTK2)
|
||||
|
Reference in New Issue
Block a user