Only add deps/http-parser to include-dirs if required
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc53077..aac6f4b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,13 +27,14 @@ IF (AMIGA)
ENDIF()
# Find required dependencies
-INCLUDE_DIRECTORIES(src include deps/http-parser)
+INCLUDE_DIRECTORIES(src include)
IF (WIN32 AND NOT MINGW)
ADD_DEFINITIONS(-DGIT_WINHTTP)
ELSE ()
FIND_PACKAGE(OpenSSL)
FILE(GLOB SRC_HTTP deps/http-parser/*.c)
+ INCLUDE_DIRECTORIES(deps/http-parser)
ENDIF()
# Specify sha1 implementation