cmake: fix dependencies

This commit is contained in:
Alexandre Bouvier 2023-03-01 13:31:04 +01:00
parent 4b66cf74e5
commit 5cd1258629
2 changed files with 6 additions and 4 deletions

View file

@ -24,7 +24,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
find_package(OpenSSL REQUIRED)
find_package(OpenSSL REQUIRED SSL)
if(NOT CPP_JWT_USE_VENDORED_NLOHMANN_JSON)
find_package(nlohmann_json REQUIRED)

View file

@ -1,10 +1,12 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
if(NOT @CPP_JWT_USE_VENDORED_NLOHMANN_JSON@)
find_package(nlohmann_json REQUIRED)
find_dependency(nlohmann_json)
endif()
find_package(OpenSSL REQUIRED)
find_dependency(OpenSSL COMPONENTS SSL)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")
check_required_components("@PROJECT_NAME@")