summaryrefslogtreecommitdiff
path: root/Modules/Platform/Windows-Borland-CXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-02-17 14:17:32 -0500
committerBrad King <brad.king@kitware.com>2012-02-20 10:09:44 -0500
commitbdbbf763d65a4040001188b2e2d05bdab4a35427 (patch)
treeeaadd566c41ec44e444123435ef8a2a753fa9302 /Modules/Platform/Windows-Borland-CXX.cmake
parent3f78ced7c2318b23610c6a4ffdf727bde0efa529 (diff)
downloadcmake-bdbbf763d65a4040001188b2e2d05bdab4a35427.tar.gz
Recognize Embarcadero compiler (#12604)
The Borland compiler was re-branded as CodeGear during 2007-2009 and since 2009 is the Embarcadero compiler. They offer predefined macros: http://docwiki.embarcadero.com/RADStudio/en/Predefined_Macros and distinguish themselves by __CODEGEARC__ and __CODEGEARC_VERSION__. Version 6.30 (C++Builder XE) changed the meaning of some flags: http://docwiki.embarcadero.com/RADStudio/en/C%2B%2B_Compiler_Option_Changes_for_XE Teach Embarcadero compiler information files to generate build rules with flags matching the compiler version. Leave the flags unchanged for old Borland versions. Always set the BORLAND toolchain indicator for compatibility with existing projects that test it. Also set the EMBARCADERO indicator for newer toolchains.
Diffstat (limited to 'Modules/Platform/Windows-Borland-CXX.cmake')
-rw-r--r--Modules/Platform/Windows-Borland-CXX.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/Platform/Windows-Borland-CXX.cmake b/Modules/Platform/Windows-Borland-CXX.cmake
index 9704f8afff..809490f95b 100644
--- a/Modules/Platform/Windows-Borland-CXX.cmake
+++ b/Modules/Platform/Windows-Borland-CXX.cmake
@@ -1,2 +1 @@
-include(Platform/Windows-Embarcadero)
-__embarcadero_language(CXX)
+include(Platform/Windows-Embarcadero-CXX)