ENH: fix double CMAKE_(LANG)_FLAGS problem in try compile

This commit is contained in:
Bill Hoffman 2006-01-25 14:12:58 -05:00
parent b442e86492
commit f5ce41ee39
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
langFlags += lang; langFlags += lang;
langFlags += "_FLAGS"; langFlags += "_FLAGS";
fprintf(fout, "SET(CMAKE_VERBOSE_MAKEFILE 1)\n"); fprintf(fout, "SET(CMAKE_VERBOSE_MAKEFILE 1)\n");
fprintf(fout, "SET(CMAKE_%s_FLAGS \"${CMAKE_%s_FLAGS}", lang, lang); fprintf(fout, "SET(CMAKE_%s_FLAGS \"", lang);
const char* flags = mf->GetDefinition(langFlags.c_str()); const char* flags = mf->GetDefinition(langFlags.c_str());
if(flags) if(flags)
{ {