I have already read How can I make CMake use GCC instead of Clang on Mac OS X?. I have a cpp project, which usually compile via CLion with default CMakeLists.txt. Like