diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-26 18:55:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-26 18:55:55 (GMT) |
commit | 66a08c10e5bd4b8eff58837cd58372a4dfdd19df (patch) | |
tree | 9d094b67d0899a3cebdfeba8b0280d374e7f25db /Source/cmTryCompileCommand.cxx | |
parent | 7cdf5c4601ea2a791d35fafadd890508ce434c6f (diff) | |
download | CMake-66a08c10e5bd4b8eff58837cd58372a4dfdd19df.zip CMake-66a08c10e5bd4b8eff58837cd58372a4dfdd19df.tar.gz CMake-66a08c10e5bd4b8eff58837cd58372a4dfdd19df.tar.bz2 |
ENH: more uniform approach to enable language, one step closer to being able to enable a language without modifing cmake source code
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 6 |
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); |