summaryrefslogtreecommitdiff
path: root/cmake/SelectHTTPParser.cmake
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-12-23 12:59:40 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2021-12-23 12:59:40 -0600
commitfbe0b90fc0f79bfd1cdecac2807c6cf81b05efad (patch)
tree5f56bf8568a0ec8abf7fe67d886106ff6ad61187 /cmake/SelectHTTPParser.cmake
parent2b140a3cab34839ff5443bdab6ac3a0295e4feb8 (diff)
downloadlibgit2-ethomson/cli_redux.tar.gz
cmake: use project-specific root variable instead of CMAKE_SOURCE_DIRethomson/cli_redux
Diffstat (limited to 'cmake/SelectHTTPParser.cmake')
-rw-r--r--cmake/SelectHTTPParser.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/SelectHTTPParser.cmake b/cmake/SelectHTTPParser.cmake
index ffc897fbc..bb6ef5517 100644
--- a/cmake/SelectHTTPParser.cmake
+++ b/cmake/SelectHTTPParser.cmake
@@ -12,8 +12,8 @@ if(USE_HTTP_PARSER STREQUAL "system")
endif()
else()
message(STATUS "http-parser version 2 was not found or disabled; using bundled 3rd-party sources.")
- add_subdirectory("${CMAKE_SOURCE_DIR}/deps/http-parser" "${CMAKE_BINARY_DIR}/deps/http-parser")
- list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${CMAKE_SOURCE_DIR}/deps/http-parser")
+ add_subdirectory("${PROJECT_SOURCE_DIR}/deps/http-parser" "${PROJECT_BINARY_DIR}/deps/http-parser")
+ list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${PROJECT_SOURCE_DIR}/deps/http-parser")
list(APPEND LIBGIT2_DEPENDENCY_OBJECTS "$<TARGET_OBJECTS:http-parser>")
add_feature_info(http-parser ON "http-parser support (bundled)")
endif()