diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2019-03-19 13:26:53 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2019-03-19 13:26:53 +0300 |
commit | ae719abad022349c3a5dae548ad599165ffe2af6 (patch) | |
tree | b278188b7724bedaa41ba7eac4b2e40b4cae418e /src/CMakeLists.txt | |
parent | 04e03c840deb02547eccab647243f6cf6ddf2764 (diff) |
Trying to fix build on linux
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 7 |
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) |