Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2020-04-29 13:32:00 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-04-29 13:32:00 +0300
commitb91c3d26e332ab828d269e6d2ea1e9d44f3d1e4a (patch)
tree928a7bfd48ae6d484a92802e2d1b15c3efddf546 /src/CMakeLists.txt
parentd828a1e80b39eb7bffbcde7b7a48741791a56b43 (diff)
Fix build on OSX with new wxWidgets in deps
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 281f9e663..e170ea8d3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -77,6 +77,11 @@ if (SLIC3R_GUI)
list(APPEND wxWidgets_LIBRARIES ${LIBRT})
endif()
+ # This fixes a OpenGL linking issue on OSX. wxWidgets cmake build includes
+ # wrong libs for opengl in the link line and it does not link to it by himself.
+ # libslic3r_gui will link to opengl anyway, so lets override wx
+ list(FILTER wxWidgets_LIBRARIES EXCLUDE REGEX OpenGL)
+
# list(REMOVE_ITEM wxWidgets_LIBRARIES oleacc)
message(STATUS "wx libs: ${wxWidgets_LIBRARIES}")