Explorar o código

ENH: FORCE the values in the cache, otherwise the file is useless

Alex
Alexander Neundorf %!s(int64=18) %!d(string=hai) anos
pai
achega
a9d19d884e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Source/cmTryRunCommand.cxx

+ 2 - 2
Source/cmTryRunCommand.cxx

@@ -354,13 +354,13 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs,
 
 
       file << "SET( " << this->RunResultVariable << " \n     \""
       file << "SET( " << this->RunResultVariable << " \n     \""
            << this->Makefile->GetDefinition(this->RunResultVariable.c_str())
            << 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)
       if (out!=0)
         {
         {
         file << "SET( " << internalRunOutputName << " \n     \""
         file << "SET( " << internalRunOutputName << " \n     \""
              << this->Makefile->GetDefinition(internalRunOutputName.c_str())
              << 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();
       file.close();
       }
       }