I added my /usr/local/bin
and /opt/homebrew/include
to my CPATH
variable. This way the clang compiler recognizes libraries residing in these paths when invoked from command line. However, when I am to develop something in Xcode, Xcode (12.5.1) doesn't recognize these paths unless explicitly added to Xcode project settings. As you may have experienced, doing so is really troublesome.
I want these paths added to CPATH
to be globally available to all C/C++ projects in Xcode in Big Sur (11.6) M1 Macs without having to explicitly add them in each project settings.
Is it possible?