build-support/lib/cmake: fix CMAKE_SYSTEM_NAME in cygwin cross (#468185)
This commit is contained in:
@@ -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
|
||||
)
|
||||
}"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user