ENH: fix double CMAKE_(LANG)_FLAGS problem in try compile
This commit is contained in:
parent
b442e86492
commit
f5ce41ee39
|
@ -175,7 +175,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
|
|||
langFlags += lang;
|
||||
langFlags += "_FLAGS";
|
||||
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());
|
||||
if(flags)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue