Fix Cmake 'Unsupported GNU Version' Error

While installing the latest beagle-lib according to the LinuxUnstallInstructions, I encountered this error:

#error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.