summaryrefslogtreecommitdiff
path: root/Modules/Compiler/Borland-DetermineCompiler.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Compiler/Borland-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/Borland-DetermineCompiler.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/Borland-DetermineCompiler.cmake b/Modules/Compiler/Borland-DetermineCompiler.cmake
new file mode 100644
index 000000000..ef3083b4d
--- /dev/null
+++ b/Modules/Compiler/Borland-DetermineCompiler.cmake
@@ -0,0 +1,7 @@
+
+set(_compiler_id_pp_test "defined(__BORLANDC__)")
+
+set(_compiler_id_version_compute "
+ /* __BORLANDC__ = 0xVRR */
+# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_HEX@(__BORLANDC__>>8)
+# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_HEX@(__BORLANDC__ & 0xFF)")