File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,11 @@ else()
109109 message (STATUS "OpenSSL found: ${OPENSSL_VERSION} " )
110110 target_compile_definitions (${TARGET} PUBLIC CPPHTTPLIB_OPENSSL_SUPPORT)
111111 target_link_libraries (${TARGET} PUBLIC OpenSSL::SSL OpenSSL::Crypto)
112- if (APPLE AND NOT IOS )
112+ if (APPLE )
113113 target_compile_definitions (${TARGET} PUBLIC CPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN)
114- target_link_libraries (${TARGET} PUBLIC "-framework CoreFoundation -framework Security" )
114+ find_library (CORE_FOUNDATION_FRAMEWORK CoreFoundation REQUIRED)
115+ find_library (SECURITY_FRAMEWORK Security REQUIRED)
116+ target_link_libraries (${TARGET} PUBLIC ${CORE_FOUNDATION_FRAMEWORK} ${SECURITY_FRAMEWORK} )
115117 endif ()
116118 endif ()
117119 else ()
You can’t perform that action at this time.
0 commit comments