File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,7 @@ function(cpprest_find_openssl)
43
43
message (STATUS "OPENSSL_ROOT_DIR = ${OPENSSL_ROOT_DIR} " )
44
44
set (_OPENSSL_VERSION "" )
45
45
endif ()
46
- if (UNIX )
47
- find_package (PkgConfig )
48
- pkg_search_module (OPENSSL openssl )
49
- endif ()
50
- if (OPENSSL_FOUND )
51
- target_link_libraries (cpprest PRIVATE ${OPENSSL_LDFLAGS} )
52
- else ()
53
- find_package (OpenSSL 1.0.0 REQUIRED )
54
- endif ()
46
+ find_package (OpenSSL 1.0.0 REQUIRED )
55
47
56
48
INCLUDE (CheckCXXSourceCompiles )
57
49
set (CMAKE_REQUIRED_INCLUDES "${OPENSSL_INCLUDE_DIR} " )
@@ -77,4 +69,4 @@ function(cpprest_find_openssl)
77
69
# libressl doesn't ship with the cleanup method being used in ws_client_wspp
78
70
target_compile_definitions (cpprestsdk_openssl_internal INTERFACE -DCPPREST_NO_SSL_LEAK_SUPPRESS )
79
71
endif ()
80
- endfunction ()
72
+ endfunction ()
You can’t perform that action at this time.
0 commit comments