summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Intel-DetermineCompiler.cmake
diff options
context:
space:
mode:
authorR. Andrew Ohana <rao@esi-group.com>2019-04-01 20:56:17 (GMT)
committerR. Andrew Ohana <rao@esi-group.com>2019-04-25 20:37:44 (GMT)
commita893018c47dba503caca0c8e2e22d12aaa9b6752 (patch)
treede088c2ea1f8d91713d0032c28ecdb48430cf97b /Modules/Compiler/Intel-DetermineCompiler.cmake
parent1ddce8fd6de1a88af6e81f6cfa36b48b7948a53d (diff)
downloadCMake-a893018c47dba503caca0c8e2e22d12aaa9b6752.zip
CMake-a893018c47dba503caca0c8e2e22d12aaa9b6752.tar.gz
CMake-a893018c47dba503caca0c8e2e22d12aaa9b6752.tar.bz2
Project: Report intel's simulation of gcc.
Diffstat (limited to 'Modules/Compiler/Intel-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/Intel-DetermineCompiler.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Compiler/Intel-DetermineCompiler.cmake b/Modules/Compiler/Intel-DetermineCompiler.cmake
index d7e4532..c31aa77 100644
--- a/Modules/Compiler/Intel-DetermineCompiler.cmake
+++ b/Modules/Compiler/Intel-DetermineCompiler.cmake
@@ -18,9 +18,23 @@ set(_compiler_id_version_compute "
/* _MSC_VER = VVRR */
# define @PREFIX@SIMULATE_VERSION_MAJOR @MACRO_DEC@(_MSC_VER / 100)
# define @PREFIX@SIMULATE_VERSION_MINOR @MACRO_DEC@(_MSC_VER % 100)
+# endif
+# if defined(__GNUC__)
+# define @PREFIX@SIMULATE_VERSION_MAJOR @MACRO_DEC@(__GNUC__)
+# elif defined(__GNUG__)
+# define @PREFIX@SIMULATE_VERSION_MAJOR @MACRO_DEC@(__GNUG__)
+# endif
+# if defined(__GNUC_MINOR__)
+# define @PREFIX@SIMULATE_VERSION_MINOR @MACRO_DEC@(__GNUC_MINOR__)
+# endif
+# if defined(__GNUC_PATCHLEVEL__)
+# define @PREFIX@SIMULATE_VERSION_PATCH @MACRO_DEC@(__GNUC_PATCHLEVEL__)
# endif")
set(_compiler_id_simulate "
# if defined(_MSC_VER)
# define @PREFIX@SIMULATE_ID \"MSVC\"
+# endif
+# if defined(__GNUC__)
+# define @PREFIX@SIMULATE_ID \"GNU\"
# endif")