diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-05-30 14:34:09 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-05-30 15:45:01 (GMT) |
commit | 2930a198f610e729d73df6771d70119adac6df2e (patch) | |
tree | ce60765554c545454c65bae917c5d1a554eec166 /Source/cmQtAutoGenerator.cxx | |
parent | 392f223d6055a8863064fabcc704442f29bd0c23 (diff) | |
download | CMake-2930a198f610e729d73df6771d70119adac6df2e.zip CMake-2930a198f610e729d73df6771d70119adac6df2e.tar.gz CMake-2930a198f610e729d73df6771d70119adac6df2e.tar.bz2 |
Autogen: Add lock file to AUTORCC commands
By using a per .qrc lock file in AUTORCC, the same
`cmake -E cmake_autorcc ...` command can be called concurrently.
Diffstat (limited to 'Source/cmQtAutoGenerator.cxx')
-rw-r--r-- | Source/cmQtAutoGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenerator.cxx b/Source/cmQtAutoGenerator.cxx index bf184d8..750e1ed 100644 --- a/Source/cmQtAutoGenerator.cxx +++ b/Source/cmQtAutoGenerator.cxx @@ -367,10 +367,11 @@ bool cmQtAutoGenerator::FileSystem::FileRemove(std::string const& filename) return cmSystemTools::RemoveFile(filename); } -bool cmQtAutoGenerator::FileSystem::Touch(std::string const& filename) +bool cmQtAutoGenerator::FileSystem::Touch(std::string const& filename, + bool create) { std::lock_guard<std::mutex> lock(Mutex_); - return cmSystemTools::Touch(filename, false); + return cmSystemTools::Touch(filename, create); } bool cmQtAutoGenerator::FileSystem::MakeDirectory(std::string const& dirname) |