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"