Hello,
I have a 3.3.2 version of iOS (well, now I realy only think its iOS version) which I dont remember how i installed, via brew or sudo perhaps (attached package if needs to be confirmed its realy for iOS and noc macOS only).
in my CMake i initialize it this way:
...
include("${CMAKE_SOURCE_DIR}/../../extralibs/openssl/ios/lib/cmake/OpenSSL/OpenSSLConfig.cmake")
set(OPENSSL_ROOT_DIR "${CMAKE_SOURCE_DIR}/../../extralibs/openssl/ios")
set(OPENSSL_LIBRARIES "${CMAKE_SOURCE_DIR}/../../extralibs/openssl/ios/lib")
set(OPENSSL_CRYPTO_LIBRARY "${CMAKE_SOURCE_DIR}/../../extralibs/openssl/ios/libcrypto.a") # or *.dylib?
set(OPENSSL_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/../../extralibs/openssl/ios/include")
include_directories(${OPENSSL_INCLUDE_DIR})
find_package(OpenSSL)
...
target_link_libraries(${TARGET_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/../../extralibs/openssl/ios/lib/libssl.a" "${CMAKE_SOURCE_DIR}/../../extralibs/openssl/ios/lib/libcrypto.a") # or *.dylib?
NOTE: for windows/android this same (of course with their own target specified libraries) works perfectly!
however upon build this gives me:
is it the version issue or am I missing something?