From 149ef7388b3c9d19a7be72c642404e0a15085b98 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Tue, 8 Oct 2024 17:59:48 -0400 Subject: [PATCH] i#7025: Restore msgbox_mask package defaults Replaces the AUTOMATED_TESTING set in package builds by PR #5769 with a new DISABLE_ZLIB CMake option to accomplish the goal of disabling the zlib found on these VMs while avoiding turning off msgbox_mask. The disabling by default of msgbox_mask in packages has caused many users to fail to obtain error information and has led to confusion with silent errors. Fixes #7025 --- CMakeLists.txt | 5 +++-- make/package.cmake | 9 +++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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}