Vishnu,
I have no reason to believe that this warning/error message about source file references is a cause for concern. I don't know where it's coming from, but the binary versions distributed with Homebrew, the package manager on macOS, reference the same source file in the build tree on the CI VM. Running OpenCoarrays installed from a binary package on macOS has never caused me any issues, nor have we ever received a bug report that would indicate a problem.
The build script looks correct. OpenCoarrays automatically sets the corresponding `-DCMAKE_BUILD_TYPE:STRING=Release` if not specified on the command line.
If there is a string pointing to a source file in your build tree embedded in the shared library, then I don't think it was explicitly put there by us, and I suspect that it will have no runtime impact. Running strings on my own dylib (on macOS) I see a reference to line 590 which is a transfer statement in co_broadcast_c_char(). Code from this file will not be executed unless the user explicitly requests the OpenCoarrays extensions module which lets one use collectives with compilers that may or may not support coarrays, and do not adequately support collectives.
Thanks,
Zaak
P.S. OpenCoarrays 2.2.0 has been released.