Skip to content

Commit 95b445b

Browse files
authored
#218 switch off zlib examples
When building zlib, the example and minigzip targets need to have the -lz flag, but this is hardly achievable from mjpc through grpc. Because zlib is only a transitive dependency, I recommend to rather not build zlib examples. https://github.com/madler/zlib/blob/9404df5a1f35866d441e8033b34186ca42962ea9/CMakeLists.txt#L198
1 parent 4909b98 commit 95b445b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mjpc/grpc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ findorfetch(
3737

3838
find_package(ZLIB REQUIRED)
3939
set(gRPC_ZLIB_PROVIDER "package" CACHE INTERNAL "")
40-
40+
set(ZLIB_BUILD_EXAMPLES OFF)
4141
set(_PROTOBUF_LIBPROTOBUF libprotobuf)
4242
set(_REFLECTION grpc++_reflection)
4343
set(_PROTOBUF_PROTOC $<TARGET_FILE:protoc>)

0 commit comments

Comments
 (0)