From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kIxPEbGTlmbDJQAAe85BDQ:P1 (envelope-from ) for ; Tue, 16 Jul 2024 15:37:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kIxPEbGTlmbDJQAAe85BDQ (envelope-from ) for ; Tue, 16 Jul 2024 17:37:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721144241; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post:autocrypt:autocrypt; bh=2QsfjAFI8DWG925UXJ3MaU/S+2pMqBopgDqIfx9LXHg=; b=CDG04nIKcHYpi6+qpRP6p2eBPj7DmNWORAGp28hNTr7mcpeXu1KiDub7NC+exUvy+N2V0k vE/lL/CVb8qvY25RYWzYupjDG4yIQvyocXGKXvdyMHpq6Azr16Qee705OrYDUfQA0HS7Ks EGLCzzn7lrya4DrzOOhtWnkBPyQdM2Tb6zxJ/vi9WkaBwai8K2r2XzhlUM9TNLN4BnjcCd cwAiQcpZ/ihMnujQL1Y7p44A6e9PD0Y+fN/xfFvOWGXeJKXOB5QiRFrQ4K9fafnZCmscAM Qi8LRAPxnPWknQM7e/puw+uOJkI0weGP7wDMNzZe2eCYTkJMRzxgXWNbmgeeqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721144241; a=rsa-sha256; cv=none; b=UESLlWJt7Fs2a27lLj9C2H8YihA2n7RJ1AaXAk+PMh9CfHBsiw0Vuv0y4BzT0tUER8lPwK XU/ebVUJKGgVxHvRqrHfOm2OavcqKI0RhkLaKF1StVLT3qeQ8ifJPazTB2we67z/itlegK EgcMzm/MKPz3Moul78fkI33gxPhY9FNysADZschRa4NdmUTSZUVJgoXP6AUKKHodVzVfc1 ZXKtujZ17/A8Rla7Q4AbIbJmtAxK1UoblNxfOFLhPpIlNL0Gz6488Sn/2EwmBntT+s72zs ze3C0rlSOWH3wveXfgVaPvQ9kxX2UHnTPoRqj6Rf7qxr6AfSIwiRjeMbpNw4xQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E0D793E033 for ; Tue, 16 Jul 2024 17:37:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTkEh-00059N-Q2; Tue, 16 Jul 2024 11:37:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTkEd-0004t1-Rw for guix-patches@gnu.org; Tue, 16 Jul 2024 11:36:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sTkEd-00036p-GU for guix-patches@gnu.org; Tue, 16 Jul 2024 11:36:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sTkEg-00049l-0y for guix-patches@gnu.org; Tue, 16 Jul 2024 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69554] [PATCH v2] build-system: cmake: Build tests depending on `#:tests?`. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Jul 2024 15:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 69554@debbugs.gnu.org Received: via spool by 69554-submit@debbugs.gnu.org id=B69554.172114421815968 (code B ref 69554); Tue, 16 Jul 2024 15:37:01 +0000 Received: (at 69554) by debbugs.gnu.org; 16 Jul 2024 15:36:58 +0000 Received: from localhost ([127.0.0.1]:34286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sTkEc-00049S-6S for submit@debbugs.gnu.org; Tue, 16 Jul 2024 11:36:58 -0400 Received: from mail01.noris.net ([62.128.1.221]:44947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sTkEY-00049G-H3 for 69554@debbugs.gnu.org; Tue, 16 Jul 2024 11:36:56 -0400 Received: from p57b08481.dip0.t-ipconnect.de ([87.176.132.129] helo=[192.168.110.2]) by mail01.noris.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1sTkEU-0007ma-FL; Tue, 16 Jul 2024 17:36:50 +0200 Content-Type: multipart/alternative; boundary="------------qlDq76IOe7CrJVGDm7nur6u4" Message-ID: <079bf725-1855-498f-8863-d7ac7a6c6065@crazy-compilers.com> Date: Tue, 16 Jul 2024 17:36:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <7676fd973fa640750306df216feb95c335b345de.1709593063.git.h.goebel@crazy-compilers.com> <87ed7v0z8m.fsf@gnu.org> From: Hartmut Goebel Content-Language: de-DE, en-US Autocrypt: addr=h.goebel@crazy-compilers.com; keydata= xsFNBFJQM3oBEACiUXmMppc3+A7JpF3lPz8O/mRhfz1U6F4EOTlacTrCcm7Xg5U2JsPPNapV r5+vHnKBK+xbaX3s/A/G+SwrUZhi1X1HRnSNY1CqL8CT7rZmOtfjg4ExnOuCjie2bKhb9JKm lJ7MrNimIbNQoX1mRcQ4VMEflhyWfaPGbT73siuMkbr020ExhzW8T18JIC01SgWMULYMBXOB oGY21am/vaTFCK8bym1P4HVN8i64uOWL0agkAMHbju6SZtG2fYJ68eS3P/97bXRg1pveEdpa FgaFZhquecw4WdedwLwt1xNcjAg/p6tN73W3asEZTgMHa+iNzbJgcyhWpci09wQZfZ1uL0Hd M+ohng38ccgu9hJx6YzCN7Fe14JooKbPukG/WfClAgAzZSHRKpS4zGdGlg6D6EWayyWWoLR3 KoMA4LIIlaQbqaOhfe85b4mNgB1hqd0uRTHOah/6T+FUoSQ1IAeKLIDqj6rW7X4ISRn1CXGS LGDn2QKqR3KtU3cLf8hAeDeO7Qe1jTvLrG1Mfca8lEmC7/yN1gI7L4/cs6lhmXUgMaevuxss BxO2kkh0OS8HVFf+QQ7LZ5vt91yQVT9HVvOuVob0YtG+3rvkpMaHQilKloNoEkmMiHpwypBa IfAC6NP9smgionvvmQ5RWSEaH5/pfSUAYbqzWbqDxtqEF/mPOwARAQABzS1IYXJ0bXV0IEdv ZWJlbCA8aC5nb2ViZWxAY3JhenktY29tcGlsZXJzLmNvbT7CwZQEEwEKAD4CGwMCHgECF4AF CwkIBwMFFQoJCAsFFgIDAQAWIQTUrYucFnt1fE8I6Hd7dSgRv3c7ZQUCZXYHFwUJFwaNHQAK CRB7dSgRv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SqI4OfUbVVkA6 OY6DWb43/DE= Organization: crazy-compilers.com In-Reply-To: <87ed7v0z8m.fsf@gnu.org> X-Noris-IP: 87.176.132.129 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: E0D793E033 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.50 X-Spam-Score: -6.50 X-TUID: Hkzom3viwEit This is a multi-part message in MIME format. --------------qlDq76IOe7CrJVGDm7nur6u4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 15.07.24 um 11:40 schrieb Ludovic Courtès: > My understanding is that ‘BUILD_TESTING’ is not standard, as the last > sentence above suggests. Thus I’m reluctant to passing this flag > unconditionally, as I guess it would fail for ‘CMakeLists.txt’ that do > not implement it, right? I just tested it, and all you get is a warning: $ cat CMakeLists.txt cmake_minimum_required(VERSION 3.0) project(doo) $ cmake -DBUILD_TESTING=OFF . … -- Generating done (0.0s) CMake Warning:  Manually-specified variables were not used by the project:    BUILD_TESTING -- Build files have been written to: /tmp/xxx -- Regards Hartmut Goebel | Hartmut Goebel |h.goebel@crazy-compilers.com | |www.crazy-compilers.com | compilers which you thought are impossible | --------------qlDq76IOe7CrJVGDm7nur6u4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Am 15.07.24 um 11:40 schrieb Ludovic Courtès:
My understanding is that ‘BUILD_TESTING’ is not standard, as the last
sentence above suggests.  Thus I’m reluctant to passing this flag
unconditionally, as I guess it would fail for ‘CMakeLists.txt’ that do
not implement it, right?

I just tested it, and all you get is a warning:

$ cat CMakeLists.txt 
cmake_minimum_required(VERSION 3.0)
project(doo)
$ cmake -DBUILD_TESTING=OFF .

-- Generating done (0.0s)
CMake Warning:
 Manually-specified variables were not used by the project:

   BUILD_TESTING


-- Build files have been written to: /tmp/xxx


--

Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |
--------------qlDq76IOe7CrJVGDm7nur6u4--