Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit bab5c0e

Browse files
authored
cmake: fix find_dependency (yhirose#1509)
1 parent 016838f commit bab5c0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

httplibConfig.cmake.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ set(HTTPLIB_VERSION @PROJECT_VERSION@)
1212
include(CMakeFindDependencyMacro)
1313

1414
# We add find_dependency calls here to not make the end-user have to call them.
15-
find_dependency(Threads REQUIRED)
15+
find_dependency(Threads)
1616
if(@HTTPLIB_IS_USING_OPENSSL@)
1717
# OpenSSL COMPONENTS were added in Cmake v3.11
1818
if(CMAKE_VERSION VERSION_LESS "3.11")
19-
find_dependency(OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@ REQUIRED)
19+
find_dependency(OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@)
2020
else()
2121
# Once the COMPONENTS were added, they were made optional when not specified.
2222
# Since we use both, we need to search for both.
23-
find_dependency(OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@ COMPONENTS Crypto SSL REQUIRED)
23+
find_dependency(OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@ COMPONENTS Crypto SSL)
2424
endif()
2525
endif()
2626
if(@HTTPLIB_IS_USING_ZLIB@)
27-
find_dependency(ZLIB REQUIRED)
27+
find_dependency(ZLIB)
2828
endif()
2929

3030
if(@HTTPLIB_IS_USING_BROTLI@)
3131
# Needed so we can use our own FindBrotli.cmake in this file.
3232
# Note that the FindBrotli.cmake file is installed in the same dir as this file.
3333
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
3434
set(BROTLI_USE_STATIC_LIBS @BROTLI_USE_STATIC_LIBS@)
35-
find_dependency(Brotli COMPONENTS common encoder decoder REQUIRED)
35+
find_dependency(Brotli COMPONENTS common encoder decoder)
3636
endif()
3737

3838
# Mildly useful for end-users

0 commit comments

Comments
 (0)