Just found more info on cs50 from
https://manual.cs50.net/library/The "global environment" section of CB FAQ might be better in this case for Non-Windows users.
For global environment :
- Menu Settings/Compiler and debugger
- In the Global compiler settings, select the directories tab
- Add the required paths for compiler and linker.
Tim S.