@@ -7,23 +7,32 @@ include(CMakeFindDependencyMacro)
7
7
find_dependency (Threads REQUIRED )
8
8
if (@HTTPLIB_REQUIRE_OPENSSL@ )
9
9
find_dependency (OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@ REQUIRED )
10
+ # Lets you check if these options were correctly enabled for your install
11
+ set (HTTPLIB_IS_USING_OPENSSL TRUE )
10
12
elseif (@HTTPLIB_USE_OPENSSL_IF_AVAILABLE@ )
11
13
# Look quietly since it's optional
12
14
find_dependency (OpenSSL @_HTTPLIB_OPENSSL_MIN_VER@ QUIET )
15
+ # Lets you check if these options were correctly enabled for your install
16
+ set (HTTPLIB_IS_USING_OPENSSL @OPENSSL_FOUND@ )
17
+ else ()
18
+ set (HTTPLIB_IS_USING_OPENSSL FALSE )
13
19
endif ()
14
20
if (@HTTPLIB_REQUIRE_ZLIB@ )
15
21
find_dependency (ZLIB REQUIRED )
22
+ # Lets you check if these options were correctly enabled for your install
23
+ set (HTTPLIB_IS_USING_ZLIB TRUE )
16
24
elseif (@HTTPLIB_USE_ZLIB_IF_AVAILABLE@ )
17
25
# Look quietly since it's optional
18
26
find_dependency (ZLIB QUIET )
27
+ # Lets you check if these options were correctly enabled for your install
28
+ set (HTTPLIB_IS_USING_ZLIB @ZLIB_FOUND@ )
29
+ else ()
30
+ set (HTTPLIB_IS_USING_ZLIB FALSE )
19
31
endif ()
20
32
21
33
# Lets the end-user find the header path if needed
22
34
# This is helpful if you're using Cmake's pre-compiled header feature
23
35
set_and_check (HTTPLIB_HEADER_PATH "@PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR@/httplib.h" )
24
- # Lets you check if these options were correctly enabled for your install
25
- set (HTTPLIB_IS_USING_OPENSSL @OPENSSL_FOUND@ )
26
- set (HTTPLIB_IS_USING_ZLIB @ZLIB_FOUND@ )
27
36
28
37
# Brings in the target library
29
38
include ("${CMAKE_CURRENT_LIST_DIR} /httplibTargets.cmake" )
0 commit comments