Attempt without CONFIG and uppercase lib name

This commit is contained in:
PCoder 2023-03-28 18:49:26 +05:30
parent cb9bdcb452
commit 24fa209f53

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.6)
project(flutter_openssl_crypto)
find_package(openssl 1.1.1q CONFIG)
find_package(OpenSSL REQUIRED)
add_library(${PROJECT_NAME} SHARED empty.c)
target_link_libraries(${PROJECT_NAME} PRIVATE openssl::crypto)
target_link_libraries(${PROJECT_NAME} PRIVATE OpenSSL::Crypto)