diff options
author | Brad King <brad.king@kitware.com> | 2009-07-08 13:14:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-08 13:14:56 (GMT) |
commit | a30a41e5ca07a278dbea87fd7d6085e1f6bf9714 (patch) | |
tree | c9ff507fa304c1e04a28668bed73de4528d8996e /Modules | |
parent | aef8fe509bc69a83fa85fb210b967c9eebf07822 (diff) | |
download | CMake-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.cmake | 3 |
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. |