From 2ffea137594d957d75a6090a91a609c6b4250754 Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Tue, 30 Jun 2020 08:52:33 +0200 Subject: [PATCH] Mark zlib as found when using SAPI CMake build Signed-off-by: Christian Blichmann --- cmake/zlib/Download.cmake | 1 + sandboxed_api/sandbox2/examples/zlib/CMakeLists.txt | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/zlib/Download.cmake b/cmake/zlib/Download.cmake index 126f3cd..24aad46 100644 --- a/cmake/zlib/Download.cmake +++ b/cmake/zlib/Download.cmake @@ -34,6 +34,7 @@ endif() set(_zlib_src "${CMAKE_BINARY_DIR}/zlib-src") +set(ZLIB_FOUND TRUE) set(ZLIB_INCLUDE_DIRS ${_zlib_src}) add_library(z STATIC diff --git a/sandboxed_api/sandbox2/examples/zlib/CMakeLists.txt b/sandboxed_api/sandbox2/examples/zlib/CMakeLists.txt index 6cd41ab..199a393 100644 --- a/sandboxed_api/sandbox2/examples/zlib/CMakeLists.txt +++ b/sandboxed_api/sandbox2/examples/zlib/CMakeLists.txt @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -find_package(ZLIB REQUIRED) - # sandboxed_api/sandbox2/examples/zlib:zpipe_sandbox add_executable(sandbox2_zpipe_sandbox zpipe_sandbox.cc