From 4875ce641cf486275e9e5a31e61af8753c4b2f8a Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 5 Aug 2018 20:52:18 -0500 Subject: [PATCH] Cover an issue if not built with GUI and --gui is passed. --- src/slic3r.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r.cpp b/src/slic3r.cpp index 7f699d3c4..17955d113 100644 --- a/src/slic3r.cpp +++ b/src/slic3r.cpp @@ -51,6 +51,10 @@ main(int argc, char **argv) GUI::App::SetInstance(gui); wxEntry(argc, argv); } +#else + if (cli_config.gui) { + std::cout << "GUI support has not been built." << "\n"; + } #endif // load config files supplied via --load for (const std::string &file : cli_config.load.values) {