CMAKE_COMPILER_IS_GNULANG.rst 430 B

123456789101112131415
  1. CMAKE_COMPILER_IS_GNU<LANG>
  2. ---------------------------
  3. True if the compiler is GNU.
  4. If the selected ``<LANG>`` compiler is the GNU compiler then this is ``TRUE``,
  5. if not it is ``FALSE``. Unlike the other per-language variables, this
  6. uses the GNU syntax for identifying languages instead of the CMake
  7. syntax. Recognized values of the ``<LANG>`` suffix are:
  8. ::
  9. CC = C compiler
  10. CXX = C++ compiler
  11. G77 = Fortran compiler