mirror of
https://github.com/reactos/CMake.git
synced 2025-01-19 09:54:02 +00:00
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…
x
Reference in New Issue
Block a user