build-support/lib/cmake: fix CMAKE_SYSTEM_NAME in cygwin cross (#468185)

This commit is contained in:
John Ericson
2025-12-05 19:51:10 +00:00
committed by GitHub
+3 -1
View File
@@ -12,7 +12,9 @@ let
[
"-DCMAKE_SYSTEM_NAME=${
findFirst isString "Generic" (
optional (!stdenv.hostPlatform.isRedox) stdenv.hostPlatform.uname.system
# uname -s is CYGWIN_NT[...] on cygwin, but cmake expects CYGWIN
optional (stdenv.hostPlatform.isCygwin) "CYGWIN"
++ optional (!stdenv.hostPlatform.isRedox) stdenv.hostPlatform.uname.system
)
}"
]