summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index b72f14d..47c3bd4 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -158,7 +158,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
}
else if ( format == cmSystemTools::FORTRAN_FILE_FORMAT )
{
- fprintf(fout, "PROJECT(CMAKE_TRY_COMPILE FORTRAN)\n");
+ fprintf(fout, "PROJECT(CMAKE_TRY_COMPILE Fortran)\n");
}
else
{
@@ -187,8 +187,8 @@ int cmTryCompileCommand::CoreTryCompileCode(
}
if(format == cmSystemTools::FORTRAN_FILE_FORMAT )
{
- const char* fflags = mf->GetDefinition("CMAKE_FORTRAN_FLAGS");
- fprintf(fout, "SET(CMAKE_FORTRAN_FLAGS \"${CMAKE_FORTRAN_FLAGS} ");
+ const char* fflags = mf->GetDefinition("CMAKE_Fortran_FLAGS");
+ fprintf(fout, "SET(CMAKE_Fortran_FLAGS \"${CMAKE_Fortran_FLAGS} ");
if(fflags)
{
fprintf(fout, " %s ", fflags);