mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 02:37:04 +00:00
Tree support "on build plate only" no interface layers fix (#13192)
This commit is contained in:
@@ -44,6 +44,18 @@ if (SLIC3R_GUI)
|
||||
include(${wxWidgets_USE_FILE})
|
||||
endif()
|
||||
|
||||
if(APPLE AND TARGET wx::wxgl)
|
||||
# Newer wxWidgets CMake exports may inject the macOS OpenGL framework
|
||||
# as a quoted file path inside wx::wxgl, which Ninja then treats as a
|
||||
# missing input file. Orca links OpenGL explicitly elsewhere, so strip
|
||||
# these broken pseudo-paths from the imported target.
|
||||
get_target_property(_wx_gl_libs wx::wxgl INTERFACE_LINK_LIBRARIES)
|
||||
if(_wx_gl_libs)
|
||||
list(FILTER _wx_gl_libs EXCLUDE REGEX "framework OpenGL")
|
||||
set_target_properties(wx::wxgl PROPERTIES INTERFACE_LINK_LIBRARIES "${_wx_gl_libs}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(JPEG QUIET)
|
||||
|
||||
string(REGEX MATCH "wxpng" WX_PNG_BUILTIN ${wxWidgets_LIBRARIES})
|
||||
|
||||
Reference in New Issue
Block a user