浏览代码

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.
Brad King 16 年之前
父节点
当前提交
a30a41e5ca
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Modules/CMakeDetermineCCompiler.cmake

+ 3 - 0
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.