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>2019-03-19 13:26:53 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-03-19 13:26:53 +0300
commitae719abad022349c3a5dae548ad599165ffe2af6 (patch)
treeb278188b7724bedaa41ba7eac4b2e40b4cae418e /src/CMakeLists.txt
parent04e03c840deb02547eccab647243f6cf6ddf2764 (diff)
Trying to fix build on linux
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f7ebfe99e..225a23898 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -40,6 +40,7 @@ if (SLIC3R_GUI)
find_package(wxWidgets 3.0 REQUIRED COMPONENTS base core adv html gl)
else ()
find_package(wxWidgets 3.1 QUIET COMPONENTS base core adv html gl)
+
if (NOT wxWidgets_FOUND)
message(FATAL_ERROR "\nCould not find wxWidgets 3.1.\n"
"Hint: On Linux you can set -DSLIC3R_WX_STABLE=1 to use wxWidgets 3.0\n")
@@ -91,7 +92,11 @@ endif ()
# Add the Slic3r GUI library, libcurl, OpenGL and GLU libraries.
if (SLIC3R_GUI)
- target_link_libraries(slic3r libslic3r_gui ${wxWidgets_LIBRARIES})
+
+ # FIXME: Workaround for missing zlib (still needed by libgio despite wxzlib being present)
+ find_package(ZLIB REQUIRED)
+
+ target_link_libraries(slic3r libslic3r_gui ${wxWidgets_LIBRARIES} ${ZLIB_LIBRARIES})
# Configure libcurl & OpenSSL
find_package(CURL REQUIRED)