summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineFortranCompiler.cmake
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/CMakeDetermineFortranCompiler.cmake
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/CMakeDetermineFortranCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineFortranCompiler.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake
index d7d032c..9050037 100644
--- a/Modules/CMakeDetermineFortranCompiler.cmake
+++ b/Modules/CMakeDetermineFortranCompiler.cmake
@@ -237,8 +237,6 @@ if(NOT CMAKE_Fortran_COMPILER_ID_RUN)
endif()
if(CMAKE_Fortran_PLATFORM_ID MATCHES "MinGW")
set(CMAKE_COMPILER_IS_MINGW 1)
- elseif(CMAKE_Fortran_PLATFORM_ID MATCHES "Cygwin")
- set(CMAKE_COMPILER_IS_CYGWIN 1)
endif()
endif()