Skip to content

Commit

Permalink
added boost dependency to fix build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
guocuimi committed Nov 22, 2023
1 parent 66e016d commit 586856d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
steps:
- name: Install toolkits
run: |
sudo apt-get install -y build-essential ninja-build bison gcc-12 libunwind-dev python3-dev
sudo apt-get install -y build-essential ninja-build bison gcc-12 libunwind-dev python3-dev libboost-all-dev
- name: Checkout
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

find_package(Boost CONFIG REQUIRED)
find_package(Threads REQUIRED)
# find all dependencies from vcpkg
find_package(glog CONFIG REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt-get update -q -y && \
zip \
pkg-config \
libssl-dev \
libboost-all-dev \
curl \
git \
wget
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.devel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update -q -y && \
zip \
pkg-config \
libssl-dev \
libboost-all-dev \
curl \
git

Expand Down
1 change: 0 additions & 1 deletion src/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ cc_library(
SRCS
http_server.cpp
DEPS
absl::strings
glog::glog
)

Expand Down
2 changes: 1 addition & 1 deletion src/server/http_server.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once

#include <boost/asio.hpp>
#include <boost/beast.hpp>
#include <cstddef>
#include <cstdint>
Expand Down

0 comments on commit 586856d

Please sign in to comment.