diff options
author | Brad King <brad.king@kitware.com> | 2023-01-19 19:29:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-19 19:29:35 (GMT) |
commit | a429e4b9b1a56470c6c119a077910d2f090c21d0 (patch) | |
tree | f0f5010702e49035313f4c9db2e1a10ccd33f553 /Source/cmStateSnapshot.cxx | |
parent | 5031934fb05181eb925b81f6747feaa8ffa27787 (diff) | |
download | CMake-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/cmStateSnapshot.cxx')
-rw-r--r-- | Source/cmStateSnapshot.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Source/cmStateSnapshot.cxx b/Source/cmStateSnapshot.cxx index cb5f11f..e230702 100644 --- a/Source/cmStateSnapshot.cxx +++ b/Source/cmStateSnapshot.cxx @@ -301,14 +301,6 @@ void cmStateSnapshot::SetDefaultDefinitions() this->SetDefinition("UNIX", "1"); this->SetDefinition("CMAKE_HOST_UNIX", "1"); } -#if defined(__CYGWIN__) - std::string legacy; - if (cmSystemTools::GetEnv("CMAKE_LEGACY_CYGWIN_WIN32", legacy) && - cmIsOn(legacy)) { - this->SetDefinition("WIN32", "1"); - this->SetDefinition("CMAKE_HOST_WIN32", "1"); - } -#endif #if defined(__APPLE__) this->SetDefinition("APPLE", "1"); this->SetDefinition("CMAKE_HOST_APPLE", "1"); |