diff options
author | Brad King <brad.king@kitware.com> | 2021-09-16 13:50:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-16 13:55:26 (GMT) |
commit | 0b7ae84a963307706adaa07d03967db380b98716 (patch) | |
tree | 5fed0def46a3d5839722d16590550613ff0789a1 /Modules/CMakeDetermineCXXCompiler.cmake | |
parent | ffb9978e95ecab961f90be39e9a1225fdf6c0ae3 (diff) | |
download | CMake-0b7ae84a963307706adaa07d03967db380b98716.zip CMake-0b7ae84a963307706adaa07d03967db380b98716.tar.gz CMake-0b7ae84a963307706adaa07d03967db380b98716.tar.bz2 |
Cygwin: Remove redundant definitions of CYGWIN and UNIX variables
These are set by modules loaded for `CMAKE_SYSTEM_NAME`. We do not
need to set them again if the compiler defines `__CYGWIN__`.
Also remove the now-unused undocumented `CMAKE_COMPILER_IS_CYGWIN`
internal variable.
Diffstat (limited to 'Modules/CMakeDetermineCXXCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCXXCompiler.cmake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineCXXCompiler.cmake b/Modules/CMakeDetermineCXXCompiler.cmake index 556518f..a8f6cf1 100644 --- a/Modules/CMakeDetermineCXXCompiler.cmake +++ b/Modules/CMakeDetermineCXXCompiler.cmake @@ -127,8 +127,6 @@ if(NOT CMAKE_CXX_COMPILER_ID_RUN) endif() if(CMAKE_CXX_PLATFORM_ID MATCHES "MinGW") set(CMAKE_COMPILER_IS_MINGW 1) - elseif(CMAKE_CXX_PLATFORM_ID MATCHES "Cygwin") - set(CMAKE_COMPILER_IS_CYGWIN 1) endif() else() if(NOT DEFINED CMAKE_CXX_COMPILER_FRONTEND_VARIANT) |