diff --git a/src/libslic3r/CMakeLists.txt b/src/libslic3r/CMakeLists.txt index 5bd4ea2b6..ce93d95fa 100644 --- a/src/libslic3r/CMakeLists.txt +++ b/src/libslic3r/CMakeLists.txt @@ -189,7 +189,6 @@ target_link_libraries(libslic3r clipper nowide ${EXPAT_LIBRARIES} - ${GLEW_LIBRARIES} glu-libtess polypartition poly2tri diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt index 9d2531813..1d8a1e26e 100644 --- a/src/slic3r/CMakeLists.txt +++ b/src/slic3r/CMakeLists.txt @@ -154,7 +154,7 @@ endif () add_library(libslic3r_gui STATIC ${SLIC3R_GUI_SOURCES}) -target_link_libraries(libslic3r_gui libslic3r avrdude imgui) +target_link_libraries(libslic3r_gui libslic3r avrdude imgui ${GLEW_LIBRARIES}) if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY) add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE) endif ()