File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 2222 * along with Ariadne. If not, see <https://www.gnu.org/licenses/>.
2323 */
2424
25+ #include " config.hpp"
2526#include " concurrency/task_manager.hpp"
2627#include " utility/handle.hpp"
2728#include " drawer.hpp"
@@ -205,9 +206,13 @@ class GraphicsBackendArgumentParser : public ValuedArgumentParserBase {
205206
206207 VoidFunction _create_processor (ArgumentStream& stream) const override {
207208 String val = stream.pop ();
208- if (val == " cairo" ) return []{ GraphicsManager::instance ().set_backend (CairoGraphicsBackend ()); };
209- else if (val == " gnuplot" ) return []{ GraphicsManager::instance ().set_backend (GnuplotGraphicsBackend ()); };
210- else throw std::exception ();
209+ #ifdef HAVE_CAIRO_H
210+ if (val == " cairo" ) return []{ GraphicsManager::instance ().set_backend (CairoGraphicsBackend ()); };
211+ #endif
212+ #ifdef HAVE_GNUPLOT_H
213+ if (val == " gnuplot" ) return []{ GraphicsManager::instance ().set_backend (GnuplotGraphicsBackend ()); };
214+ #endif
215+ throw std::exception ();
211216 }
212217};
213218
@@ -336,4 +341,4 @@ void CommandLineInterface::_print_help() const {
336341 }
337342}
338343
339- } // namespace Ariadne
344+ } // namespace Ariadne
You can’t perform that action at this time.
0 commit comments