Watcom-DetermineCompiler.cmake 393 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 @MACRO_DEC@(__WATCOMC__ / 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")