From 565adb8115aebc274dcf1a04e0132d5cae3a8595 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 23 Sep 2002 14:04:02 -0400 Subject: [PATCH] Fix HP build --- Source/cmTryCompileCommand.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index fa909576e..103f815fd 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())