diff --git a/CMakeLists.txt b/CMakeLists.txt index ba527facc36..c0c696c415d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # ********************************************************** -# Copyright (c) 2010-2023 Google, Inc. All rights reserved. +# Copyright (c) 2010-2024 Google, Inc. All rights reserved. # Copyright (c) 2009-2010 VMware, Inc. All rights reserved. # Copyright (c) 2018 Arm Limited All rights reserved. # ********************************************************** @@ -1840,7 +1840,8 @@ endfunction () # TODO i#5767: Install an explicit zlib package on our Windows GA CI images # (this find_package finds a strawberry perl zlib which causes 32-bit build # and 64-bit private loader issues). -if (WIN32 AND AUTOMATED_TESTING) +option(DISABLE_ZLIB "Disable looking for and using zlib" OFF) +if (WIN32 AND NOT DISABLE_ZLIB) set(ZLIB_FOUND OFF) else () find_package(ZLIB) diff --git a/make/package.cmake b/make/package.cmake index 67ae451db0e..d6585d8c343 100644 --- a/make/package.cmake +++ b/make/package.cmake @@ -1,5 +1,5 @@ # ********************************************************** -# Copyright (c) 2011-2022 Google, Inc. All rights reserved. +# Copyright (c) 2011-2024 Google, Inc. All rights reserved. # Copyright (c) 2009-2010 VMware, Inc. All rights reserved. # ********************************************************** @@ -164,10 +164,15 @@ set(base_cache " BUILD_NUMBER:STRING=${arg_build} UNIQUE_BUILD_NUMBER:STRING=${arg_ubuild} BUILD_PACKAGE:BOOL=ON - AUTOMATED_TESTING:BOOL=ON ${arg_cacheappend} ") +if (WIN32) + # TODO i#5767: Install a working zlib package on our Windows GA CI images. + set(base_cache "${base_cache} + DISABLE_ZLIB:BOOL=ON") +endif() + # version is optional if (arg_version) set(base_cache "${base_cache}