From 94e67fa11889b634d2343f0623162a994ad1354b Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 27 Sep 2017 09:01:55 -0400 Subject: cpack: Fix compilation on Cygwin after auto_ptr removal Fix a compilation error on Cygwin introduced by commit f0489856e3 (Retire std::auto_ptr and its macro CM_AUTO_PTR, 2017-09-21). --- Source/CPack/cpack.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index f2c54fc..addb54e 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -194,7 +194,7 @@ int main(int argc, char const* const* argv) cmGlobalGenerator cmgg(&cminst); cmMakefile globalMF(&cmgg, cminst.GetCurrentSnapshot()); #if defined(__CYGWIN__) - globalMF->AddDefinition("CMAKE_LEGACY_CYGWIN_WIN32", "0"); + globalMF.AddDefinition("CMAKE_LEGACY_CYGWIN_WIN32", "0"); #endif bool cpackConfigFileSpecified = true; -- cgit v0.12