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:
authorBoleslaw Ciesielski <combolek@users.noreply.github.com>2021-01-08 21:10:00 +0300
committerBoleslaw Ciesielski <combolek@users.noreply.github.com>2021-01-11 09:39:59 +0300
commitecda157c51b50abe83d7e8d6a94a3f881111a0e0 (patch)
treeb3bcc39c5429b04b3359385b415b54a5cf05429a
parentfd7a555cb3dcd61d1653138a027bcad0be879923 (diff)
Fixed build regression in commit a5882a1a1c3f561233a22cc7663514b97e5fb3ba on some Linux platforms. We need to link with GTK libs after all.
-rw-r--r--src/slic3r/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt
index 019850a98..e040de727 100644
--- a/src/slic3r/CMakeLists.txt
+++ b/src/slic3r/CMakeLists.txt
@@ -257,10 +257,10 @@ if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
endif ()
# We need to implement some hacks for wxWidgets and touch the underlying GTK
-# layer and sub-libraries. This forces us to use the include locations of these
-# libraries. No need to link to them, wxWidgets does that already.
-# See PresetComboBox.cpp for the includes and subsequent workarounds.
+# layer and sub-libraries. This forces us to use the include locations and
+# link these libraries.
if (UNIX AND NOT APPLE)
find_package(GTK${SLIC3R_GTK} REQUIRED)
target_include_directories(libslic3r_gui PRIVATE ${GTK${SLIC3R_GTK}_INCLUDE_DIRS})
+ target_link_libraries(libslic3r_gui ${GTK${SLIC3R_GTK}_LIBRARIES})
endif ()