summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--icespider/compile/routeCompiler.cpp4
1 files changed, 4 insertions, 0 deletions
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<std::string> 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);