We show the usage of check_<lang>_source_compiles
(where <lang>
can be C,
CXX or
Fortran) to check that a small code
snippet compiles. This will be contrasted with try_compile
. Finally, we
discuss how to troubleshoot try_compile
to avoid false negatives and false positives.