Parcourir la source

Merge topic 'cmake-server-pad-arguments'

28e891f0 server-mode: Do not ignore the first cacheArgument on configure
Brad King il y a 9 ans
Parent
commit
23a63d2024
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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):
-  std::vector<std::string> cacheArgs;
+  std::vector<std::string> cacheArgs = { "unused" };
   bool cacheArgumentsError = false;
   const Json::Value passedArgs = request.Data[kCACHE_ARGUMENTS_KEY];
   if (!passedArgs.isNull()) {