summaryrefslogtreecommitdiffstats
path: root/Source/cmServerProtocol.cxx
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-11-30 16:20:34 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-30 18:14:15 (GMT)
commit28e891f0c7edff8dacecd7526c42e8e23e90271a (patch)
tree09561a7250ad32ee7848c35da524eb90c4ca6074 /Source/cmServerProtocol.cxx
parentdb3499df5d06ab2cacc61e9f7720a33456aeafe4 (diff)
downloadCMake-28e891f0c7edff8dacecd7526c42e8e23e90271a.zip
CMake-28e891f0c7edff8dacecd7526c42e8e23e90271a.tar.gz
CMake-28e891f0c7edff8dacecd7526c42e8e23e90271a.tar.bz2
server-mode: Do not ignore the first cacheArgument on configure
SetCacheArgs skips the first argument it gets, so add some padding before calling it.
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r--Source/cmServerProtocol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx
index d35efe0..e159c8f 100644
--- a/Source/cmServerProtocol.cxx
+++ b/Source/cmServerProtocol.cxx
@@ -923,7 +923,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()) {