diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2017-06-19 16:14:50 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2017-06-23 16:21:03 +0200 |
commit | 74c74fb04e98fa3641a0eaddddb5526a921f3520 (patch) | |
tree | 108acfb750d7f90253322b9fc4b997e12f86516e /templates/CMakeLists.txt.template | |
parent | b9fc05bf934f192be47b1d0495b0840dcedac6d2 (diff) |
workaround zlib cmake issue
Diffstat (limited to 'templates/CMakeLists.txt.template')
-rw-r--r-- | templates/CMakeLists.txt.template | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index ef0faccb2e..91bed9a6db 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -143,6 +143,9 @@ endif() set(ZLIB_INCLUDE_DIR "<%text>${ZLIB_ROOT_DIR}</%text>") if(EXISTS "<%text>${ZLIB_ROOT_DIR}</%text>/CMakeLists.txt") + # TODO(jtattermusch): workaround for https://github.com/madler/zlib/issues/218 + include_directories(<%text>${ZLIB_INCLUDE_DIR}</%text>) + add_subdirectory(<%text>${ZLIB_ROOT_DIR}</%text> third_party/zlib) if(TARGET zlibstatic) set(_gRPC_ZLIB_LIBRARIES zlibstatic) |