Aug 29, 2017To select a specific compiler, you have several solutions, as explained in CMake wiki: Method 1: use environment variables.How to check what compiler cmake is using? - Stack OverflowHow does CMake choose gcc and g++ for compiling? - Stack OverflowWhat is the difference between using a Makefile and CMake to cmake architecture issue with several compiler/subdirectoryMore results from stackoverflow.com
Aug 29, 2017To select a specific compiler, you have several solutions, as explained in CMake wiki: Method 1: use environment variables.How to check what compiler cmake is using?How does CMake choose gcc and g++ for compiling?How compile only c with cmake? [closed]In CMake, how can I test if the compiler is Clang?More results from stackoverflow.com
Aug 29, 2017To select a specific compiler, you have several solutions, as explained in CMake wiki: Method 1: use environment variables.Unable to specify the compiler with CMake - Stack OverflowHow to check what compiler cmake is using? - Stack Overflowcmake: multiple compilers for different targets with single build CMake with an embedded C compiler that doesn't support "-o"More results from stackoverflow.com
CMake supports an extensive list of compilers, including: Apple Clang, Clang, GNU GCC, MSVC, Oracle Developer Studio, and Intel C++ Compiler.
Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_ASM_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.