wlav / cppyy

Other
405 stars 42 forks source link

How to add include path via -isystem #188

Open adam-urbanczyk opened 1 year ago

adam-urbanczyk commented 1 year ago

I'm trying cppyy on a codebase (opencascade, which I do not control) that uses <> includes and I get

file not found with <angled> include; use "quotes" instead

when adding the include path using add_include_path. cppyy.gbl.gInterpreter.GetIncludePath() returns paths included with -I. Is there a way to use -isystem instead?

wlav commented 1 year ago

You can test by setting the envar EXTRA_CLING_ARGS to see whether it solves the issue. (That's not a general solution, but if it fixes things, would be an indication that something like add_system_include_path is needed...)

adam-urbanczyk commented 1 year ago

Thanks, the provided workaround does work.