Skip to content

Commit

Permalink
Fix install path of http_parser.h
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Jul 1, 2020
1 parent 95e6d5a commit 43b7160
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/buffer ${CMAKE_BINARY_DIR}/src ${LIBEV_INCLUDE_DIR})
include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/http-parser
${CMAKE_SOURCE_DIR}/src/buffer
${CMAKE_BINARY_DIR}/src
${LIBEV_INCLUDE_DIR})

add_executable(example example.c)

Expand Down
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ set(UHTTPD_VERSION_PATCH 4)
# Check the third party Libraries
find_package(Libev REQUIRED)

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/buffer ${CMAKE_CURRENT_BINARY_DIR} ${LIBEV_INCLUDE_DIR})
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/http-parser
${CMAKE_CURRENT_SOURCE_DIR}/buffer
${CMAKE_CURRENT_BINARY_DIR}
${LIBEV_INCLUDE_DIR})

set(EXTRA_LIBS ${LIBEV_LIBRARY} m)

Expand Down
2 changes: 1 addition & 1 deletion src/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <stdarg.h>
#include <arpa/inet.h>

#include "http-parser/http_parser.h"
#include "http_parser.h"
#include "buffer.h"
#include "config.h"

Expand Down

0 comments on commit 43b7160

Please sign in to comment.