mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00:00
ENH: FORCE the values in the cache, otherwise the file is useless
Alex
This commit is contained in:
parent
e9b3ae3d11
commit
a9d19d884e
@ -354,13 +354,13 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs,
|
||||
|
||||
file << "SET( " << this->RunResultVariable << " \n \""
|
||||
<< this->Makefile->GetDefinition(this->RunResultVariable.c_str())
|
||||
<< "\"\n CACHE STRING \"Result from TRY_RUN\" )\n\n";
|
||||
<< "\"\n CACHE STRING \"Result from TRY_RUN\" FORCE)\n\n";
|
||||
|
||||
if (out!=0)
|
||||
{
|
||||
file << "SET( " << internalRunOutputName << " \n \""
|
||||
<< this->Makefile->GetDefinition(internalRunOutputName.c_str())
|
||||
<< "\"\n CACHE STRING \"Output from TRY_RUN\" )\n\n";
|
||||
<< "\"\n CACHE STRING \"Output from TRY_RUN\" FORCE)\n\n";
|
||||
}
|
||||
file.close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user