fix: correct script directory handling in build_and_test.sh for C++ client build

This commit is contained in:
MayaTheShy
2025-11-08 22:36:25 -05:00
parent 6577f53390
commit 11e62d47d4

View File

@@ -15,10 +15,11 @@ echo
# 2. Build the C++ client
echo "[2/3] Building C++ client..."
cd "$(dirname "$0")"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake "$SCRIPT_DIR" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
echo "✓ C++ client built successfully"
echo