summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-27 13:01:55 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-27 13:04:28 (GMT)
commit94e67fa11889b634d2343f0623162a994ad1354b (patch)
tree0496f31eda5fee110d6485e83b08bd604be6904e /Source/CPack/cpack.cxx
parent068effa4d8ad2813499a6e79b056d79a2120e1ad (diff)
downloadCMake-94e67fa11889b634d2343f0623162a994ad1354b.zip
CMake-94e67fa11889b634d2343f0623162a994ad1354b.tar.gz
CMake-94e67fa11889b634d2343f0623162a994ad1354b.tar.bz2
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).
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx2
1 files changed, 1 insertions, 1 deletions
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;