I’m currently in the process of using pclint in checking the c and c++ source files for errors. So when I have a target I want to lint the files that are the sources of that target to be processed using the pclint application. Currently I have it working so that the include folders for the target are also passed to the pclint application. This works quite oke, but one off the final errors is that the pclint application can’t find the system include files and generates errors for that.
So my question is how can I find the general system include folders for a certain target or source?
I thought that it had to do with INTERFACE_SYSTEM_INCLUDE_DIRECTORIES but when I read this out through several ways of get_property it always returns empty.
That said it might also be relevant that I’m using a cross compiler and that sysroot has been set.
I’m using a MAC M1 12.2.1 to compile c++ code and my problem is similar with yours:
I use cmake to build, although specified the the system include directory with include_directories() or target_include_directories() the compile_commands.json always shows the same -isysroot path: