mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
New parameter DEP_WX_GTK3=on/off to build wxWidgets against GTK3.
This commit is contained in:
8
deps/deps-linux.cmake
vendored
8
deps/deps-linux.cmake
vendored
@@ -99,6 +99,12 @@ else ()
|
||||
set(DEP_WX_TAG "v3.1.1-patched")
|
||||
endif()
|
||||
|
||||
if (DEP_WX_GTK3)
|
||||
set(WX_GTK_VERSION "3")
|
||||
else ()
|
||||
set(WX_GTK_VERSION "2")
|
||||
endif()
|
||||
|
||||
ExternalProject_Add(dep_wxwidgets
|
||||
EXCLUDE_FROM_ALL 1
|
||||
GIT_REPOSITORY "https://github.com/prusa3d/wxWidgets"
|
||||
@@ -108,7 +114,7 @@ ExternalProject_Add(dep_wxwidgets
|
||||
CONFIGURE_COMMAND ./configure
|
||||
"--prefix=${DESTDIR}/usr/local"
|
||||
--disable-shared
|
||||
--with-gtk=2
|
||||
--with-gtk=${WX_GTK_VERSION}
|
||||
--with-opengl
|
||||
--enable-unicode
|
||||
--enable-graphics_ctx
|
||||
|
||||
Reference in New Issue
Block a user