OpenWatcom-DetermineCompiler.cmake 387 B

12345678910
  1. set(_compiler_id_pp_test "defined(__WATCOMC__)")
  2. set(_compiler_id_version_compute "
  3. /* __WATCOMC__ = VVRP + 1100 */
  4. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@((__WATCOMC__ - 1100) / 100)
  5. # define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@((__WATCOMC__ / 10) % 10)
  6. # if (__WATCOMC__ % 10) > 0
  7. # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__WATCOMC__ % 10)
  8. # endif")