cmake: Fix setup hook on bash < 4.0
This matters in nix-shell and stdenvNative on Darwin. Fixes #3204.
This commit is contained in:
parent
7926b587c3
commit
0acc4e6b26
@ -47,7 +47,7 @@ cmakeConfigurePhase() {
|
||||
eval "$postConfigure"
|
||||
}
|
||||
|
||||
if [ -z "$dontUseCmakeConfigure" -a ! -v configurePhase ]; then
|
||||
if [ -z "$dontUseCmakeConfigure" -a -z "$configurePhase" ]; then
|
||||
configurePhase=cmakeConfigurePhase
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user