Added support for thriftz to ThriftConfig.cmake.in
diff --git a/build/cmake/ThriftConfig.cmake.in b/build/cmake/ThriftConfig.cmake.in
index fca2a1d..f82c0a5 100644
--- a/build/cmake/ThriftConfig.cmake.in
+++ b/build/cmake/ThriftConfig.cmake.in
@@ -29,13 +29,18 @@
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()