mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Copy wx/private headers after wxWidgets install
wxWidgets 3.3 cmake install doesn't include private headers. OrcaSlicer uses some private headers for accessibility support. Add a post-install step to copy the private headers directory.
This commit is contained in:
11
deps/wxWidgets/wxWidgets.cmake
vendored
11
deps/wxWidgets/wxWidgets.cmake
vendored
@@ -56,6 +56,17 @@ orcaslicer_add_cmake_project(
|
|||||||
-DwxUSE_NANOSVG=OFF
|
-DwxUSE_NANOSVG=OFF
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# wxWidgets 3.3 cmake install doesn't include private headers.
|
||||||
|
# OrcaSlicer uses some of the private headers (for accessibility support).
|
||||||
|
# Copy the private headers directory after install.
|
||||||
|
ExternalProject_Add_Step(dep_wxWidgets copy_private_headers
|
||||||
|
DEPENDEES install
|
||||||
|
COMMENT "Copying wxWidgets private headers"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
<SOURCE_DIR>/include/wx/private
|
||||||
|
${DESTDIR}/include/wx-3.3/wx/private
|
||||||
|
)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_debug_dep(dep_wxWidgets)
|
add_debug_dep(dep_wxWidgets)
|
||||||
endif ()
|
endif ()
|
||||||
|
|||||||
Reference in New Issue
Block a user