mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user