Browse Source

Help: `CMAKE_<LANG>_COMPILER_ID` turn code block into table

Alex Turbov 3 years ago
parent
commit
a8430527f3
1 changed files with 54 additions and 37 deletions
  1. 54 37
      Help/variable/CMAKE_LANG_COMPILER_ID.rst

+ 54 - 37
Help/variable/CMAKE_LANG_COMPILER_ID.rst

@@ -6,43 +6,60 @@ Compiler identification string.
 A short string unique to the compiler vendor.  Possible values
 include:
 
-::
-
-  Absoft = Absoft Fortran (absoft.com)
-  ADSP = Analog VisualDSP++ (analog.com)
-  AppleClang = Apple Clang (apple.com)
-  ARMCC = ARM Compiler (arm.com)
-  ARMClang = ARM Compiler based on Clang (arm.com)
-  Bruce = Bruce C Compiler
-  CCur = Concurrent Fortran (ccur.com)
-  Clang = LLVM Clang (clang.llvm.org)
-  Cray = Cray Compiler (cray.com)
-  Embarcadero, Borland = Embarcadero (embarcadero.com)
-  Flang = Classic Flang Fortran Compiler (https://github.com/flang-compiler/flang)
-  LLVMFlang = LLVM Flang Fortran Compiler (https://github.com/llvm/llvm-project/tree/main/flang)
-  Fujitsu = Fujitsu HPC compiler (Trad mode)
-  FujitsuClang = Fujitsu HPC compiler (Clang mode)
-  G95 = G95 Fortran (g95.org)
-  GNU = GNU Compiler Collection (gcc.gnu.org)
-  GHS = Green Hills Software (www.ghs.com)
-  HP = Hewlett-Packard Compiler (hp.com)
-  IAR = IAR Systems (iar.com)
-  Intel = Intel Compiler (intel.com)
-  IntelLLVM = Intel LLVM-Based Compiler (intel.com)
-  LCC = MCST Elbrus C/C++/Fortran Compiler (mcst.ru)
-  MSVC = Microsoft Visual Studio (microsoft.com)
-  NVHPC = NVIDIA HPC SDK Compiler (nvidia.com)
-  NVIDIA = NVIDIA CUDA Compiler (nvidia.com)
-  OpenWatcom = Open Watcom (openwatcom.org)
-  PGI = The Portland Group (pgroup.com)
-  PathScale = PathScale (pathscale.com)
-  SDCC = Small Device C Compiler (sdcc.sourceforge.net)
-  SunPro = Oracle Solaris Studio (oracle.com)
-  TI = Texas Instruments (ti.com)
-  TinyCC = Tiny C Compiler (tinycc.org)
-  XL, VisualAge, zOS = IBM XL (ibm.com)
-  XLClang = IBM Clang-based XL (ibm.com)
-  IBMClang = IBM LLVM-based Compiler (ibm.com)
+=============================== ===============================================
+Value                           Name
+=============================== ===============================================
+``Absoft``                      `Absoft Fortran`_
+``ADSP``                        Analog VisualDSP++
+``AppleClang``                  Apple Clang
+``ARMCC``                       ARM Compiler
+``ARMClang``                    ARM Compiler based on Clang
+``Bruce``                       Bruce C Compiler
+``CCur``                        Concurrent Fortran
+``Clang``                       `LLVM Clang`_
+``Cray``                        Cray Compiler
+``Embarcadero``, ``Borland``    `Embarcadero`_
+``Flang``                       `Classic Flang Fortran Compiler`_
+``LLVMFlang``                   `LLVM Flang Fortran Compiler`_
+``Fujitsu``                     Fujitsu HPC compiler (Trad mode)
+``FujitsuClang``                Fujitsu HPC compiler (Clang mode)
+``G95``                         `G95 Fortran`_
+``GNU``                         `GNU Compiler Collection`_
+``GHS``                         `Green Hills Software`_
+``HP``                          Hewlett-Packard Compiler
+``IAR``                         IAR Systems
+``Intel``                       Intel Compiler
+``IntelLLVM``                   Intel LLVM-Based Compiler
+``LCC``                         MCST Elbrus C/C++/Fortran Compiler
+``MSVC``                        `Microsoft Visual Studio`_
+``NVHPC``                       `NVIDIA HPC Compiler`_
+``NVIDIA``                      `NVIDIA CUDA Compiler`_
+``OpenWatcom``                  `Open Watcom`_
+``PGI``                         The Portland Group
+``PathScale``                   PathScale
+``SDCC``                        `Small Device C Compiler`_
+``SunPro``                      Oracle Solaris Studio
+``TI``                          Texas Instruments
+``TinyCC``                      `Tiny C Compiler`_
+``XL``, ``VisualAge``, ``zOS``  IBM XL
+``XLClang``                     IBM Clang-based XL
+``IBMClang``                    IBM LLVM-based Compiler
+=============================== ===============================================
 
 This variable is not guaranteed to be defined for all compilers or
 languages.
+
+.. _Absoft Fortran: https://www.absoft.com
+.. _LLVM Clang: https://clang.llvm.org
+.. _Embarcadero: https://www.embarcadero.com
+.. _Classic Flang Fortran Compiler: https://github.com/flang-compiler/flang
+.. _LLVM Flang Fortran Compiler: https://github.com/llvm/llvm-project/tree/main/flang
+.. _G95 Fortran: http://g95.sourceforge.net
+.. _GNU Compiler Collection: https://gcc.gnu.org
+.. _Green Hills Software: https://www.ghs.com/products/compiler.html
+.. _Microsoft Visual Studio: https://visualstudio.microsoft.com
+.. _NVIDIA HPC Compiler: https://developer.nvidia.com/hpc-compilers
+.. _NVIDIA CUDA Compiler: https://developer.nvidia.com/cuda-llvm-compiler
+.. _Open Watcom: https://open-watcom.github.io
+.. _Small Device C Compiler: http://sdcc.sourceforge.net
+.. _Tiny C Compiler: https://bellard.org/tcc