From 99678c0ec33bcc7f9a85aa801bebcd27fa9bb2ee Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Thu, 12 Mar 2020 22:55:00 -0400 Subject: [PATCH] Adding ability for install to require external picojson --- cmake/jwt-cpp-config.cmake.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/jwt-cpp-config.cmake.in b/cmake/jwt-cpp-config.cmake.in index 1f591ba..049f7b7 100644 --- a/cmake/jwt-cpp-config.cmake.in +++ b/cmake/jwt-cpp-config.cmake.in @@ -1,6 +1,12 @@ @PACKAGE_INIT@ +set(USE_EXTERNAL_PICOJSON @EXTERNAL_PICOJSON@) + include(CMakeFindDependencyMacro) find_dependency(OpenSSL REQUIRED) +if(USE_EXTERNAL_PICOJSON) + find_dependency(picojson REQUIRED) +endif() + include(${CMAKE_INSTALL_PREFIX}/jwt-cpp/jwt-cpp.cmake)