diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-08-31 20:26:47 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-09-07 15:53:19 (GMT) |
commit | f23a24c2878ffc0b6f769d5a61509b254d082c03 (patch) | |
tree | 2a32a37d144efd9ef976685201b88e1b8e83a5aa /Source/cmQtAutoGeneratorInitializer.cxx | |
parent | 37ef18a468149ba579b96a763ea3042a360652d7 (diff) | |
download | CMake-f23a24c2878ffc0b6f769d5a61509b254d082c03.zip CMake-f23a24c2878ffc0b6f769d5a61509b254d082c03.tar.gz CMake-f23a24c2878ffc0b6f769d5a61509b254d082c03.tar.bz2 |
Autogen: Use list of lists functions for UIC options
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGeneratorInitializer.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index c7747b8..ed01a3c 100644 --- a/Source/cmQtAutoGeneratorInitializer.cxx +++ b/Source/cmQtAutoGeneratorInitializer.cxx @@ -487,7 +487,7 @@ static void SetupAutoTargetUic(const cmQtAutoGenDigest& digest, // Uic files options { std::vector<std::string> uiFileFiles; - std::vector<std::string> uiFileOptions; + std::vector<std::vector<std::string>> uiFileOptions; { const std::string uiExt = "ui"; const std::vector<cmSourceFile*>& srcFiles = makefile->GetSourceFiles(); @@ -496,14 +496,15 @@ static void SetupAutoTargetUic(const cmQtAutoGenDigest& digest, const std::string& fPath = sf->GetFullPath(); if (sf->GetExtension() == uiExt) { // Check if the files has uic options - std::string uicOpts = GetSafeProperty(sf, "AUTOUIC_OPTIONS"); + const std::string uicOpts = GetSafeProperty(sf, "AUTOUIC_OPTIONS"); if (!uicOpts.empty()) { const std::string absFile = cmSystemTools::GetRealPath(fPath); // Check if file isn't skipped if (setup.UicSkip.count(absFile) == 0) { uiFileFiles.push_back(absFile); - cmSystemTools::ReplaceString(uicOpts, ";", cmQtAutoGen::listSep); - uiFileOptions.push_back(uicOpts); + std::vector<std::string> optsVec; + cmSystemTools::ExpandListArgument(uicOpts, optsVec); + uiFileOptions.push_back(std::move(optsVec)); } } } |