cmake-generators(7) — CMake 3.23.0-rc3 Documentation
cmake.org › latest › manualCMake Generators are platform-specific so each may be available only on certain platforms. The cmake(1) command-line tool --help output lists available generators on the current platform. Use its -G option to specify the generator for a new build tree. The cmake-gui(1) offers interactive selection of a generator when creating a new build tree.
How to specify a compiler in CMake?
newbedev.com › how-to-specify-a-compiler-in-cmakeTo select a specific compiler, you have several solutions, as exaplained in CMake wiki: Method 1: use environment variables. For C and C++, set the CC and CXX environment variables. This method is not guaranteed to work for all generators. (Specifically, if you are trying to set Xcode's GCC_VERSION, this method confuses Xcode.) For example: