diff options
author | Mario Emmenlauer <mario@emmenlauer.de> | 2020-03-03 18:49:10 +0100 |
---|---|---|
committer | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-02-12 11:10:15 +0100 |
commit | 4fa710ea761f44ff202c0372a633afaf32958c52 (patch) | |
tree | 9033659f3fdb772d9185c0d15c6d280c3c93462f /build | |
parent | 3fc0b8d061fb1adcae49862e0c63ce94f0a0ee0f (diff) | |
download | thrift-4fa710ea761f44ff202c0372a633afaf32958c52.tar.gz |
Added c++ dependencies to ThriftConfig.cmake.in
Diffstat (limited to 'build')
-rw-r--r-- | build/cmake/ThriftConfig.cmake.in | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/build/cmake/ThriftConfig.cmake.in b/build/cmake/ThriftConfig.cmake.in index 6bfb12c70..fca2a1d39 100644 --- a/build/cmake/ThriftConfig.cmake.in +++ b/build/cmake/ThriftConfig.cmake.in @@ -27,17 +27,32 @@ set_and_check(THRIFT_BIN_DIR "@PACKAGE_BIN_INSTALL_DIR@") set(THRIFT_COMPILER "${THRIFT_BIN_DIR}/thrift@CMAKE_EXECUTABLE_SUFFIX@") if (NOT TARGET thrift::thrift) - include("${THRIFT_CMAKE_DIR}/thriftTargets.cmake") + include("${THRIFT_CMAKE_DIR}/thriftTargets.cmake") endif() set(THRIFT_LIBRARIES thrift::thrift) if ("${THRIFT_LIBRARIES}" STREQUAL "") - message(FATAL_ERROR "thrift libraries were not found") + message(FATAL_ERROR "thrift libraries were not found") endif() if (NOT Thrift_FIND_QUIETLY) - message(STATUS "Found thrift: ${PACKAGE_PREFIX_DIR}") + message(STATUS "Found thrift: ${PACKAGE_PREFIX_DIR}") +endif() + + +include(CMakeFindDependencyMacro) + +if(@ZLIB_FOUND@ AND @WITH_ZLIB@) + find_dependency(ZLIB) +endif() + +if(@OPENSSL_FOUND@ AND @WITH_OPENSSL@) + find_dependency(OpenSSL) +endif() + +if(@Libevent_FOUND@ AND @WITH_LIBEVENT@) + find_dependency(Libevent) endif() check_required_components(Thrift) |