Merge pull request #98 from abouvier/cmake-deps

cmake: fix dependencies
This commit is contained in:
Arun Muralidharan 2023-03-02 10:07:42 +05:30 committed by GitHub
commit 10ef5735d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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@")