You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quote of `CLANG_SYSTEM_INCLUDES` should be removed for
`add_custom_command`, otherwise all the options in this variable will be
treated as a single string and it causes header searching paths not
correctly set:
```
[ 56%] [clang] Building BPF object: minimal
In file included from /home/debian/projects/libbpf-bootstrap/examples/c/minimal.bpf.c:3:
In file included from /usr/include/linux/bpf.h:11:
/usr/include/linux/types.h:5:10: fatal error: 'asm/types.h' file not found
^~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/minimal.dir/build.make:78: minimal.bpf.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:288: CMakeFiles/minimal.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
```
Signed-off-by: Xin Zhang <[email protected]>
0 commit comments