summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-08 09:14:56 -0400
committerBrad King <brad.king@kitware.com>2009-07-08 09:14:56 -0400
commita30a41e5ca07a278dbea87fd7d6085e1f6bf9714 (patch)
treec9ff507fa304c1e04a28668bed73de4528d8996e /Modules/CMakeDetermineCCompiler.cmake
parentaef8fe509bc69a83fa85fb210b967c9eebf07822 (diff)
downloadcmake-a30a41e5ca07a278dbea87fd7d6085e1f6bf9714.tar.gz
ENH: Identify HP C compiler
This compiler does not enable ANSI mode by default. When identifying the C compiler we try passing -Aa in case it is the HP compiler.
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 82e9448943..bb119cd0ec 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -107,6 +107,9 @@ IF(NOT CMAKE_C_COMPILER_ID_RUN)
SET(CMAKE_C_COMPILER_ID_TEST_FLAGS
# Try compiling to an object file only.
"-c"
+
+ # Try enabling ANSI mode on HP.
+ "-Aa"
)
# Try to identify the compiler.