summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-08 13:14:56 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-08 13:14:56 (GMT)
commita30a41e5ca07a278dbea87fd7d6085e1f6bf9714 (patch)
treec9ff507fa304c1e04a28668bed73de4528d8996e /Modules
parentaef8fe509bc69a83fa85fb210b967c9eebf07822 (diff)
downloadCMake-a30a41e5ca07a278dbea87fd7d6085e1f6bf9714.zip
CMake-a30a41e5ca07a278dbea87fd7d6085e1f6bf9714.tar.gz
CMake-a30a41e5ca07a278dbea87fd7d6085e1f6bf9714.tar.bz2
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')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index 82e9448..bb119cd 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.