mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
cmake: fix dependencies
This commit is contained in:
parent
4b66cf74e5
commit
5cd1258629
2 changed files with 6 additions and 4 deletions
|
@ -24,7 +24,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
find_package(OpenSSL REQUIRED SSL)
|
||||||
|
|
||||||
if(NOT CPP_JWT_USE_VENDORED_NLOHMANN_JSON)
|
if(NOT CPP_JWT_USE_VENDORED_NLOHMANN_JSON)
|
||||||
find_package(nlohmann_json REQUIRED)
|
find_package(nlohmann_json REQUIRED)
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
@PACKAGE_INIT@
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
|
include(CMakeFindDependencyMacro)
|
||||||
|
|
||||||
if(NOT @CPP_JWT_USE_VENDORED_NLOHMANN_JSON@)
|
if(NOT @CPP_JWT_USE_VENDORED_NLOHMANN_JSON@)
|
||||||
find_package(nlohmann_json REQUIRED)
|
find_dependency(nlohmann_json)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
find_dependency(OpenSSL COMPONENTS SSL)
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
||||||
check_required_components("@PROJECT_NAME@")
|
check_required_components("@PROJECT_NAME@")
|
Loading…
Add table
Add a link
Reference in a new issue