File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,25 @@ __get_cxx_version ()
357
357
358
358
void interpreter::init_includes ()
359
359
{
360
+ // Add the standard include path
360
361
Cpp::AddIncludePath ((xeus::prefix_path () + " /include/" ).c_str ());
362
+
363
+ // Add non-standard include paths from XEUS_SEARCH_PATH
364
+ const char * non_standard_paths = XEUS_SEARCH_PATH;
365
+
366
+ if (non_standard_paths && std::strlen (non_standard_paths) > 0 )
367
+ {
368
+ // Split the paths by colon ':' and add each one
369
+ std::istringstream stream (non_standard_paths);
370
+ std::string path;
371
+ while (std::getline (stream, path, ' :' ))
372
+ {
373
+ if (!path.empty ())
374
+ {
375
+ Cpp::AddIncludePath (path.c_str ());
376
+ }
377
+ }
378
+ }
361
379
}
362
380
363
381
void interpreter::init_preamble ()
You can’t perform that action at this time.
0 commit comments