COMPILATION_DIRECTORY_COMPONENT
The COMPILATION_DIRECTORY_COMPONENT variable contains the path component for the file that is named on the compilation command. For example, assume that you’ve compiled your program in the following way:
cc -g src/test/hello.c
COMPILATION_DIRECTORY_COMPONENT would be src/test. This variable can be empty because not all compilers add this information to the generated debug information.