How to make cmake prefer GCC 8 over GCC 7?

Just installed Ubuntu MATE 18.04.1 freshly on VirtualBox. Installed a few more packages for the compilation of C/C++ project sources. I was also able to install gcc-8 and g+±8.

But when cmake configures the compilation of a C/C++ source project (e.g. x265 from MultiCoreWare’s BitBucket), it still detects GCC 7.3.0.

How do I make it recognize and prefer GCC 8.2.0? Just installing is apparently not sufficient…

/usr/bin/gcc is a sym link … go to /usr/bin/ and make a link for gcc to point to ggc-8.2