mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-11 23:38:32 +00:00
Merge pull request #98 from abouvier/cmake-deps
cmake: fix dependencies
This commit is contained in:
commit
10ef5735d8
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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@")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue