ENH: try compiles in CXX require C to be enabled as well

This commit is contained in:
Bill Hoffman 2004-08-26 17:49:04 -04:00
parent ca5e9e6415
commit 878609935a
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
}
else if ( format == cmSystemTools::CXX_FILE_FORMAT )
{
fprintf(fout, "PROJECT(CMAKE_TRY_COMPILE CXX)\n");
fprintf(fout, "PROJECT(CMAKE_TRY_COMPILE C CXX)\n");
}
else if ( format == cmSystemTools::FORTRAN_FILE_FORMAT )
{