summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompiler.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-16 13:50:25 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-16 13:55:26 (GMT)
commit0b7ae84a963307706adaa07d03967db380b98716 (patch)
tree5fed0def46a3d5839722d16590550613ff0789a1 /Modules/CMakeCCompiler.cmake.in
parentffb9978e95ecab961f90be39e9a1225fdf6c0ae3 (diff)
downloadCMake-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/CMakeCCompiler.cmake.in')
-rw-r--r--Modules/CMakeCCompiler.cmake.in5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/CMakeCCompiler.cmake.in b/Modules/CMakeCCompiler.cmake.in
index 754f235..075a713 100644
--- a/Modules/CMakeCCompiler.cmake.in
+++ b/Modules/CMakeCCompiler.cmake.in
@@ -31,11 +31,6 @@ set(CMAKE_C_COMPILER_LOADED 1)
set(CMAKE_C_COMPILER_WORKS @CMAKE_C_COMPILER_WORKS@)
set(CMAKE_C_ABI_COMPILED @CMAKE_C_ABI_COMPILED@)
set(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)
-set(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)
-if(CMAKE_COMPILER_IS_CYGWIN)
- set(CYGWIN 1)
- set(UNIX 1)
-endif()
set(CMAKE_C_COMPILER_ENV_VAR "CC")