mirror of https://git.tukaani.org/xz.git
CMake: Checking for CYGWIN covers MSYS2 too
On MSYS2, both CYGWIN and MSYS are set.
This commit is contained in:
parent
6aaa0173b8
commit
1c673c0aac
|
@ -183,7 +183,7 @@ include(GNUInstallDirs)
|
||||||
#
|
#
|
||||||
# CMake 3.27 doesn't have CMAKE_RC_COMPILER_ID so we rely on
|
# CMake 3.27 doesn't have CMAKE_RC_COMPILER_ID so we rely on
|
||||||
# CMAKE_C_COMPILER_ID.
|
# CMAKE_C_COMPILER_ID.
|
||||||
if((MINGW OR CYGWIN OR MSYS) AND (
|
if((MINGW OR CYGWIN) AND (
|
||||||
NOT CMAKE_C_COMPILER_ID STREQUAL "Clang" OR
|
NOT CMAKE_C_COMPILER_ID STREQUAL "Clang" OR
|
||||||
CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "17"))
|
CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "17"))
|
||||||
# Use workarounds with GNU windres and llvm-windres >= 17.0.0. The \x20
|
# Use workarounds with GNU windres and llvm-windres >= 17.0.0. The \x20
|
||||||
|
|
Loading…
Reference in New Issue