cmake: Fix setup hook on bash < 4.0

This matters in nix-shell and stdenvNative on Darwin.

Fixes #3204.
This commit is contained in:
Eelco Dolstra 2014-08-09 23:14:01 +02:00
parent 7926b587c3
commit 0acc4e6b26

View File

@ -47,7 +47,7 @@ cmakeConfigurePhase() {
eval "$postConfigure" eval "$postConfigure"
} }
if [ -z "$dontUseCmakeConfigure" -a ! -v configurePhase ]; then if [ -z "$dontUseCmakeConfigure" -a -z "$configurePhase" ]; then
configurePhase=cmakeConfigurePhase configurePhase=cmakeConfigurePhase
fi fi