September 2018
Intermediate to advanced
606 pages
14h 32m
English
Where can we find which default compilers and compiler flags will be picked up by CMake for our platform? CMake offers the --system-information flag, which will dump all information about your system to the screen or a file. To see this, try the following:
$ cmake --system-information information.txt
Searching through the file (in this case, information.txt), you will find the default values for the CMAKE_CXX_COMPILER, CMAKE_C_COMPILER, and CMAKE_Fortran_COMPILER options, together with their default flags. We will have a look at the flags in the next recipe.
CMake provides additional variables to interact with compilers:
Read now
Unlock full access