OpenWatcom-DetermineCompiler.cmake 387 Bytes
Newer Older
1 2 3 4 5

set(_compiler_id_pp_test "defined(__WATCOMC__)")

set(_compiler_id_version_compute "
   /* __WATCOMC__ = VVRP + 1100 */
6 7
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@((__WATCOMC__ - 1100) / 100)
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@((__WATCOMC__ / 10) % 10)
8
# if (__WATCOMC__ % 10) > 0
9
#  define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__WATCOMC__ % 10)
10
# endif")