summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 18:04:02 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-23 18:04:02 (GMT)
commit565adb8115aebc274dcf1a04e0132d5cae3a8595 (patch)
tree02c403af3b390729cee5aaece9bfbb102fad912e /Source/cmTryCompileCommand.cxx
parent48fe81acdd94ace2a03e76c6d55eba9993571964 (diff)
downloadCMake-565adb8115aebc274dcf1a04e0132d5cae3a8595.zip
CMake-565adb8115aebc274dcf1a04e0132d5cae3a8595.tar.gz
CMake-565adb8115aebc274dcf1a04e0132d5cae3a8595.tar.bz2
Fix HP build
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index fa90957..103f815 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -136,6 +136,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
fprintf(fout, "PROJECT(CMAKE_TRY_COMPILE)\n");
fprintf(fout, "IF (CMAKE_ANSI_CXXFLAGS)\n");
fprintf(fout, " SET(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}\")\n");
+ fprintf(fout, " SET(CMAKE_C_FLAGS \"${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}\")\n");
fprintf(fout, "ENDIF (CMAKE_ANSI_CXXFLAGS)\n");
// handle any compile flags we need to pass on
if (compileFlags.size())