From 9d285600d484c8e539801310f2c4bbe2bb4daef8 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 22 Apr 2014 16:34:47 +0200 Subject: Project: Generate the CXX compiler Id test from multiple files. This will allow sharing of the logic of the order to test compilers in and the preprocessor macros used to do that and to determine the version components. --- Modules/Compiler/Embarcadero-DetermineCompiler.cmake | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Modules/Compiler/Embarcadero-DetermineCompiler.cmake (limited to 'Modules/Compiler/Embarcadero-DetermineCompiler.cmake') diff --git a/Modules/Compiler/Embarcadero-DetermineCompiler.cmake b/Modules/Compiler/Embarcadero-DetermineCompiler.cmake new file mode 100644 index 0000000000..4b8594076f --- /dev/null +++ b/Modules/Compiler/Embarcadero-DetermineCompiler.cmake @@ -0,0 +1,7 @@ + +set(_compiler_id_pp_test "defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)") + +set(_compiler_id_version_compute " +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH HEX(__CODEGEARC_VERSION__ & 0xFFFF)") -- cgit v1.2.1