Quellcode durchsuchen

BUG: fix return when file is not found

Bill Hoffman vor 24 Jahren
Ursprung
Commit
11269bb1c4
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      Source/cmFindFileCommand.cxx

+ 5 - 1
Source/cmFindFileCommand.cxx

@@ -96,6 +96,10 @@ bool cmFindFileCommand::InitialPass(std::vector<std::string>& args)
       return true;
       }
     }
-  return false;
+  m_Makefile->AddCacheDefinition(args[0].c_str(),
+                                 "NOTFOUND",
+                                 helpString.c_str(),
+                                 cmCacheManager::PATH);
+  return true;
 }