summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-19 19:29:35 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-19 19:29:35 (GMT)
commita429e4b9b1a56470c6c119a077910d2f090c21d0 (patch)
treef0f5010702e49035313f4c9db2e1a10ccd33f553 /Source/CPack
parent5031934fb05181eb925b81f6747feaa8ffa27787 (diff)
downloadCMake-a429e4b9b1a56470c6c119a077910d2f090c21d0.zip
CMake-a429e4b9b1a56470c6c119a077910d2f090c21d0.tar.gz
CMake-a429e4b9b1a56470c6c119a077910d2f090c21d0.tar.bz2
CYGWIN: Drop pre-2.8.4 compatibility mode CMAKE_LEGACY_CYGWIN_WIN32
Prior to CMake 2.8.4 (released in 2011), we defined `WIN32` on CYGWIN. That was removed, but an undocumented `CMAKE_LEGACY_CYGWIN_WIN32` compatibility mode was left to help projects transition. Only projects that do not require at least 2.8.4 as their minimum CMake version need the compatibility mode. We've also long warned about projects that do not require at least 2.8.12, so it is now reasonable to remove the legacy compatibility mode.
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cpack.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index c228f07..2257118 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -233,9 +233,6 @@ int main(int argc, char const* const* argv)
cminst.GetCurrentSnapshot().SetDefaultDefinitions();
cmGlobalGenerator cmgg(&cminst);
cmMakefile globalMF(&cmgg, cminst.GetCurrentSnapshot());
-#if defined(__CYGWIN__)
- globalMF.AddDefinition("CMAKE_LEGACY_CYGWIN_WIN32", "0");
-#endif
bool parsed = true;
for (std::size_t i = 0; i < inputArgs.size(); i++) {