summaryrefslogtreecommitdiffstats
path: root/Tests/CompileOptions
diff options
context:
space:
mode:
authorJames Johnston <johnstonj.public@codenest.com>2015-12-03 20:42:30 (GMT)
committerJames Johnston <johnstonj.public@codenest.com>2015-12-03 21:37:06 (GMT)
commit060442c2e866c44ecf0c479e49e1d5ae35e8c6fb (patch)
treeaca321811274ab7e8a4348443576d39ec31a6d5a /Tests/CompileOptions
parentf3b3219c9687e54a83dc7e5dabb0afc4637bb799 (diff)
downloadCMake-060442c2e866c44ecf0c479e49e1d5ae35e8c6fb.zip
CMake-060442c2e866c44ecf0c479e49e1d5ae35e8c6fb.tar.gz
CMake-060442c2e866c44ecf0c479e49e1d5ae35e8c6fb.tar.bz2
Embarcadero: Check code using CMAKE_CXX_COMPILER_ID and CMAKE_C_COMPILER_ID.
The CMAKE_CXX_COMPILER_ID and CMAKE_C_COMPILER_ID variables are set to "Borland" for older versions of the compiler. Newer CodeGear/Embarcadero compilers will have those variables set to "Embarcadero". Search for lines of code referencing both the variable name and Borland to be sure that they also refer to Embarcadero.
Diffstat (limited to 'Tests/CompileOptions')
-rw-r--r--Tests/CompileOptions/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CompileOptions/CMakeLists.txt b/Tests/CompileOptions/CMakeLists.txt
index 05a5f82..692e0de 100644
--- a/Tests/CompileOptions/CMakeLists.txt
+++ b/Tests/CompileOptions/CMakeLists.txt
@@ -22,7 +22,7 @@ set_property(TARGET CompileOptions PROPERTY COMPILE_OPTIONS
${cxx_tests}
)
-if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|Borland")
+if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|Borland|Embarcadero")
set_property(TARGET CompileOptions APPEND PROPERTY COMPILE_OPTIONS
"-DTEST_OCTOTHORPE=\"#\""
)