Fix HP build

This commit is contained in:
Andy Cedilnik 2002-09-23 14:04:02 -04:00
parent 48fe81acdd
commit 565adb8115

View File

@ -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())