]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Checking for CYGWIN covers MSYS2 too
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 28 Sep 2024 22:20:03 +0000 (01:20 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 28 Sep 2024 22:26:13 +0000 (01:26 +0300)
On MSYS2, both CYGWIN and MSYS are set.

CMakeLists.txt

index 8cf970fc2ca26c74e4f6ed913597e148c0340e75..ac08474157a0d3d14a964f3684e6144b14170a6f 100644 (file)
@@ -183,7 +183,7 @@ include(GNUInstallDirs)
 #
 # CMake 3.27 doesn't have CMAKE_RC_COMPILER_ID so we rely on
 # CMAKE_C_COMPILER_ID.
-if((MINGW OR CYGWIN OR MSYS) AND (
+if((MINGW OR CYGWIN) AND (
         NOT CMAKE_C_COMPILER_ID STREQUAL "Clang" OR
         CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "17"))
     # Use workarounds with GNU windres and llvm-windres >= 17.0.0. The \x20