Add a GCC compiler version check in the CMakeList.txt file.