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.
This commit is contained in:
parent
aef8fe509b
commit
a30a41e5ca
@ -107,6 +107,9 @@ IF(NOT CMAKE_C_COMPILER_ID_RUN)
|
|||||||
SET(CMAKE_C_COMPILER_ID_TEST_FLAGS
|
SET(CMAKE_C_COMPILER_ID_TEST_FLAGS
|
||||||
# Try compiling to an object file only.
|
# Try compiling to an object file only.
|
||||||
"-c"
|
"-c"
|
||||||
|
|
||||||
|
# Try enabling ANSI mode on HP.
|
||||||
|
"-Aa"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Try to identify the compiler.
|
# Try to identify the compiler.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user