From 43b7160cd9566e9b082b6b7fa6deac20aed88d84 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Wed, 1 Jul 2020 14:48:42 +0800 Subject: [PATCH] Fix install path of http_parser.h Signed-off-by: Jianhui Zhao --- example/CMakeLists.txt | 7 ++++++- src/CMakeLists.txt | 7 ++++++- src/connection.h | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index cb61a83..f069dd8 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -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) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f153c48..434df5f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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) diff --git a/src/connection.h b/src/connection.h index 7f0ae6f..2f32c5f 100644 --- a/src/connection.h +++ b/src/connection.h @@ -29,7 +29,7 @@ #include #include -#include "http-parser/http_parser.h" +#include "http_parser.h" #include "buffer.h" #include "config.h"