cmCustomCommandGenerator: Fix GetInternalDepfile on moved instance

Previously the constructor captured `this` in a lambda used by the
`GetInternalDepfile` method, but the pointer is invalidated when the
instance moves.
This commit is contained in:
Orkun Tokdemir
2023-07-04 12:12:42 +02:00
parent 7f5d5f6e5a
commit 972cfd1bc3
2 changed files with 7 additions and 9 deletions

View File

@@ -20,7 +20,8 @@ class cmLocalGenerator;
class cmCustomCommandGenerator
{
std::string GetInternalDepfileName(const std::string&, const std::string&);
std::string GetInternalDepfileName(const std::string&,
const std::string&) const;
cmCustomCommand const* CC;
std::string OutputConfig;