fix Windows build errors - wip

This commit is contained in:
SoftFever
2026-03-26 10:17:19 +08:00
parent 67fb0c8c83
commit fd47370c5c
3 changed files with 17 additions and 4 deletions

View File

@@ -32,14 +32,16 @@ if (SLIC3R_GUI)
set (wxWidgets_CONFIG_OPTIONS "--toolkit=gtk${SLIC3R_GTK}")
find_package(wxWidgets 3.3 REQUIRED COMPONENTS base core adv html gl aui net media webview)
else ()
find_package(wxWidgets 3.3 REQUIRED COMPONENTS html adv gl core base webview aui net media)
find_package(wxWidgets 3.3 CONFIG REQUIRED COMPONENTS html adv gl core base webview aui net media)
endif ()
if(UNIX)
message(STATUS "wx-config path: ${wxWidgets_CONFIG_EXECUTABLE}")
endif()
include(${wxWidgets_USE_FILE})
if(wxWidgets_USE_FILE)
include(${wxWidgets_USE_FILE})
endif()
find_package(JPEG QUIET)