summaryrefslogtreecommitdiff
path: root/cmake/SelectHTTPParser.cmake
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-14 08:42:12 -0500
committerGitHub <noreply@github.com>2021-11-14 08:42:12 -0500
commit23c5c315d5f6a3e93cdb1bf1f51016fbacb86881 (patch)
tree521194932d773c1644128f3173ccafab3009f3c4 /cmake/SelectHTTPParser.cmake
parentb608af6c3a2502ae61b94416a482c2e0672286a4 (diff)
parent2c154145a8f7ce3c01f1afc40e3934c1e43c377e (diff)
downloadlibgit2-23c5c315d5f6a3e93cdb1bf1f51016fbacb86881.tar.gz
Merge pull request #6114 from libgit2/ethomson/cmake5
cmake: further refactorings
Diffstat (limited to 'cmake/SelectHTTPParser.cmake')
-rw-r--r--cmake/SelectHTTPParser.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/SelectHTTPParser.cmake b/cmake/SelectHTTPParser.cmake
index a1724a7c4..721f7fa9f 100644
--- a/cmake/SelectHTTPParser.cmake
+++ b/cmake/SelectHTTPParser.cmake
@@ -4,7 +4,7 @@ if(USE_HTTP_PARSER STREQUAL "system")
if(HTTP_PARSER_FOUND AND HTTP_PARSER_VERSION_MAJOR EQUAL 2)
list(APPEND LIBGIT2_SYSTEM_INCLUDES ${HTTP_PARSER_INCLUDE_DIRS})
- list(APPEND LIBGIT2_LIBS ${HTTP_PARSER_LIBRARIES})
+ list(APPEND LIBGIT2_SYSTEM_LIBS ${HTTP_PARSER_LIBRARIES})
list(APPEND LIBGIT2_PC_LIBS "-lhttp_parser")
add_feature_info(http-parser ON "http-parser support (system)")
else()
@@ -13,7 +13,7 @@ if(USE_HTTP_PARSER STREQUAL "system")
else()
message(STATUS "http-parser version 2 was not found or disabled; using bundled 3rd-party sources.")
add_subdirectory("${libgit2_SOURCE_DIR}/deps/http-parser" "${libgit2_BINARY_DIR}/deps/http-parser")
- list(APPEND LIBGIT2_INCLUDES "${libgit2_SOURCE_DIR}/deps/http-parser")
- list(APPEND LIBGIT2_OBJECTS "$<TARGET_OBJECTS:http-parser>")
+ list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${libgit2_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()