Przeglądaj źródła

Merge topic 'cmake-server-pad-arguments'

28e891f0 server-mode: Do not ignore the first cacheArgument on configure
Brad King 9 lat temu
rodzic
commit
23a63d2024
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Source/cmServerProtocol.cxx

+ 1 - 1
Source/cmServerProtocol.cxx

@@ -936,7 +936,7 @@ cmServerResponse cmServerProtocol1_0::ProcessConfigure(
   }
   }
 
 
   // Make sure the types of cacheArguments matches (if given):
   // Make sure the types of cacheArguments matches (if given):
-  std::vector<std::string> cacheArgs;
+  std::vector<std::string> cacheArgs = { "unused" };
   bool cacheArgumentsError = false;
   bool cacheArgumentsError = false;
   const Json::Value passedArgs = request.Data[kCACHE_ARGUMENTS_KEY];
   const Json::Value passedArgs = request.Data[kCACHE_ARGUMENTS_KEY];
   if (!passedArgs.isNull()) {
   if (!passedArgs.isNull()) {