summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMario Emmenlauer <mario@emmenlauer.de>2020-04-02 21:21:10 +0200
committerMario Emmenlauer <memmenlauer@biodataanalysis.de>2021-02-12 11:10:15 +0100
commit0db67ab7511748c3bfc33dcf186366518cb7cc32 (patch)
treee1dd3422e041db3e61bba16a4e46d03bef73a5a2 /build
parent4fa710ea761f44ff202c0372a633afaf32958c52 (diff)
downloadthrift-0db67ab7511748c3bfc33dcf186366518cb7cc32.tar.gz
Added support for thriftz to ThriftConfig.cmake.in
Diffstat (limited to 'build')
-rw-r--r--build/cmake/ThriftConfig.cmake.in9
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()