diff options
author | Mario Emmenlauer <mario@emmenlauer.de> | 2020-04-02 21:21:10 +0200 |
---|---|---|
committer | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-02-12 11:10:15 +0100 |
commit | 0db67ab7511748c3bfc33dcf186366518cb7cc32 (patch) | |
tree | e1dd3422e041db3e61bba16a4e46d03bef73a5a2 /build | |
parent | 4fa710ea761f44ff202c0372a633afaf32958c52 (diff) | |
download | thrift-0db67ab7511748c3bfc33dcf186366518cb7cc32.tar.gz |
Added support for thriftz to ThriftConfig.cmake.in
Diffstat (limited to 'build')
-rw-r--r-- | build/cmake/ThriftConfig.cmake.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build/cmake/ThriftConfig.cmake.in b/build/cmake/ThriftConfig.cmake.in index fca2a1d39..f82c0a55d 100644 --- a/build/cmake/ThriftConfig.cmake.in +++ b/build/cmake/ThriftConfig.cmake.in @@ -29,13 +29,18 @@ set(THRIFT_COMPILER "${THRIFT_BIN_DIR}/thrift@CMAKE_EXECUTABLE_SUFFIX@") if (NOT TARGET thrift::thrift) include("${THRIFT_CMAKE_DIR}/thriftTargets.cmake") endif() - set(THRIFT_LIBRARIES thrift::thrift) +if(@ZLIB_FOUND@ AND @WITH_ZLIB@) + if (NOT TARGET thriftz::thriftz) + include("${THRIFT_CMAKE_DIR}/thriftzTargets.cmake") + endif() + set(THRIFT_LIBRARIES thriftz::thriftz) +endif() + if ("${THRIFT_LIBRARIES}" STREQUAL "") message(FATAL_ERROR "thrift libraries were not found") endif() - if (NOT Thrift_FIND_QUIETLY) message(STATUS "Found thrift: ${PACKAGE_PREFIX_DIR}") endif() |