summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorPaweł Stankowski <aambitny@gmail.com>2016-03-20 09:42:19 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-21 14:51:50 (GMT)
commit53c0dc2dd2216b7927787e6d819a9a734be2c0eb (patch)
tree0c84d992128fba6794d04a613c648e503552874f /Modules/CMakeDetermineCCompiler.cmake
parenta9cb00cd50b518656053a5da4147a7106a8bfa78 (diff)
downloadCMake-53c0dc2dd2216b7927787e6d819a9a734be2c0eb.zip
CMake-53c0dc2dd2216b7927787e6d819a9a734be2c0eb.tar.gz
CMake-53c0dc2dd2216b7927787e6d819a9a734be2c0eb.tar.bz2
Add support for Bruce C Compiler (BCC)
Revise C compiler detection code to be K&R compatible.
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index e0b5468..f8c6303 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -87,6 +87,9 @@ else()
# Try enabling ANSI mode on HP.
"-Aa"
+
+ # Try compiling K&R-compatible code (needed by Bruce C Compiler).
+ "-D__CLASSIC_C__"
)
endif()