From a30a41e5ca07a278dbea87fd7d6085e1f6bf9714 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 8 Jul 2009 09:14:56 -0400 Subject: 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. --- Modules/CMakeDetermineCCompiler.cmake | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v0.12