From b22d20d5f9cc1373b06c5601b2fe2a4512833e46 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 19 Jun 2016 22:13:16 +0100 Subject: Pass search path to slice parser --- icespider/compile/routeCompiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/icespider/compile/routeCompiler.cpp b/icespider/compile/routeCompiler.cpp index 4881129..aee3f7f 100644 --- a/icespider/compile/routeCompiler.cpp +++ b/icespider/compile/routeCompiler.cpp @@ -132,6 +132,10 @@ namespace IceSpider { throw std::runtime_error("Could not find slice file"); } std::vector cppArgs; + for (const auto & p : searchPath) { + cppArgs.push_back("-I"); + cppArgs.push_back(p.string()); + } Slice::PreprocessorPtr icecpp = Slice::Preprocessor::create("IceSpider", realSlice.string(), cppArgs); FILE * cppHandle = icecpp->preprocess(false); -- cgit v1.2.3