diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh index 0a47ee6aa99..175e538e519 100755 --- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh +++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh @@ -42,7 +42,7 @@ cmakeConfigurePhase() { echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}" - cmake ${cmakeDir:-.} $cmakeFlags ${cmakeFlagsArray[@]} + cmake ${cmakeDir:-.} $cmakeFlags "${cmakeFlagsArray[@]}" eval "$postConfigure" }