diff options
author | Jiri Malak <malak.jiri@gmail.com> | 2014-03-17 18:38:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-17 18:54:43 (GMT) |
commit | 9292d3b8a016fb48f5b5b1518895b6d63e51bc2e (patch) | |
tree | b3608694924322dfc510bdec22ffc96a0a9551fc /Modules/CMakePlatformId.h.in | |
parent | fbc883c94237a488084e863a79e5301c12171aa6 (diff) | |
download | CMake-9292d3b8a016fb48f5b5b1518895b6d63e51bc2e.zip CMake-9292d3b8a016fb48f5b5b1518895b6d63e51bc2e.tar.gz CMake-9292d3b8a016fb48f5b5b1518895b6d63e51bc2e.tar.bz2 |
Watcom: Detect compiler target architecture and platform
In CMakePlatformId.h.in, fill ARCHITECTURE_ID and PLATFORM_ID for Open
Watcom.
Diffstat (limited to 'Modules/CMakePlatformId.h.in')
-rw-r--r-- | Modules/CMakePlatformId.h.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Modules/CMakePlatformId.h.in b/Modules/CMakePlatformId.h.in index 1e41fec..bc26c07 100644 --- a/Modules/CMakePlatformId.h.in +++ b/Modules/CMakePlatformId.h.in @@ -74,6 +74,23 @@ #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) # define PLATFORM_ID "Xenix" +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID "" +# endif + #else /* unknown platform */ # define PLATFORM_ID "" @@ -107,6 +124,17 @@ # define ARCHITECTURE_ID "" # endif +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + #else # define ARCHITECTURE_ID "" #endif |