We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 649ffdc commit cfe85fcCopy full SHA for cfe85fc
common/CMakeLists.txt
@@ -109,7 +109,7 @@ else()
109
message(STATUS "OpenSSL found: ${OPENSSL_VERSION}")
110
target_compile_definitions(${TARGET} PUBLIC CPPHTTPLIB_OPENSSL_SUPPORT)
111
target_link_libraries(${TARGET} PUBLIC OpenSSL::SSL OpenSSL::Crypto)
112
- if (APPLE)
+ if (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "Darwin")
113
target_compile_definitions(${TARGET} PUBLIC CPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN)
114
find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation REQUIRED)
115
find_library(SECURITY_FRAMEWORK Security REQUIRED)
0 commit comments