Watcom-DetermineCompiler.cmake 369 B

12345678910
  1. set(_compiler_id_pp_test "defined(__WATCOMC__) && __WATCOMC__ < 1200")
  2. set(_compiler_id_version_compute "
  3. /* __WATCOMC__ = VVRR */
  4. # define @PREFIX@COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
  5. # define @PREFIX@COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
  6. # if (__WATCOMC__ % 10) > 0
  7. # define @PREFIX@COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
  8. # endif")