From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-dev+bounces-98781-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 53B38158020 for <garchives@archives.gentoo.org>; Sat, 17 Dec 2022 13:16:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 478D6E08F3; Sat, 17 Dec 2022 13:16:41 +0000 (UTC) Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 169A0E08A0 for <gentoo-dev@lists.gentoo.org>; Sat, 17 Dec 2022 13:16:40 +0000 (UTC) Received: by mail-qv1-xf29.google.com with SMTP id u10so3443742qvp.4 for <gentoo-dev@lists.gentoo.org>; Sat, 17 Dec 2022 05:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=srTb6aSJwj0pJv7hB6CRwOKcXr5u26q1rukcs9weB4k=; b=L6io0TLXo9sWnEuaIMYbP8b1jvvbCZLd5g84gIJqGUKKLuDsFAaUKz8FhcLfRNFVlm Pn6EoCmWXgK2bNgANhwEeU6sAwLnUnQS8r/DJRv/ZM6JQVc7rteLF6REWeg6yEcplmbj 40UhtGZrZBAx/fh9qfWmV1K9/boYJKyT78Eu9x1+BPDenMpdJG7yAlr12R9J4E7tSGEb /eX+8wTFkWhQEuPqUqJdefDlfMxDAasiiNAMDqdWiXV6FbMJaZZFcIP4idNv3gZRncRz At+9IUEO01CxxrVrlHB1sfZ9KVc+8Xl4iJOAEmIukkyBLkeh+NKT+zmDo8xIXiTwt8j8 YfHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=srTb6aSJwj0pJv7hB6CRwOKcXr5u26q1rukcs9weB4k=; b=0ETcqqOfiJnqmSZtI+e/p6K87adwjJBsFOdWbVzKFD82QrlP1yJxEyQ60xJM1gP8tS 2pZzt3Sefs74PSrr1FrVNoHyMlwSkh9p4nbXHAnXGbcsUO1eorc2X9EfXlQD4a6Vvyud U/E8mZIYD8MGIF6jUAOA7D+mpOz4P6qzJcd9vxAbs5AYM8ewiNZPaa01euJ5lBENAZqg 4ADP8dzuz0qJH+JuXBrJZY0xb0q9RUeYrNlB/yNIwHmjBIEnfhcrLZbrOfQ3jKmzZ71t jYd55s95Bi9fy/lALAh3cp2NoNUHW5aO60d7JzCqpaLQ6QCnpS3SCRX9GNU3uXNX0MAC 4ENw== X-Gm-Message-State: ANoB5pnJ8ljSoVoA3LM+jqdBcJ5oZoJupIcYMjTQkRkbLKoXhhLHYRY6 MvBA3nSrGd2YFqMxZDTar05klKzIw9H9FWTD/n7X7N+AYRlrEg== X-Google-Smtp-Source: AA0mqf4wFp1r8WEAn4t/YJI5GT8r6uk2vYcksbI/nMjKn4iO9tevIr+G93793QuccOeaDwRFoDfhbVc+VKGUG6CeHNo= X-Received: by 2002:a05:6214:449e:b0:4c6:f8e4:7961 with SMTP id on30-20020a056214449e00b004c6f8e47961mr49469022qvb.131.1671282995297; Sat, 17 Dec 2022 05:16:35 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <e9f090d4-4137-9033-9771-6498abb2362e@woodpecker.gentoo.org> <CAFqVybrCgriQrR_LOqHom3VbgEEd85Qj3YP=ybd5bp9LR8om2Q@mail.gmail.com> In-Reply-To: <CAFqVybrCgriQrR_LOqHom3VbgEEd85Qj3YP=ybd5bp9LR8om2Q@mail.gmail.com> From: Azamat Hackimov <azamat.hackimov@gmail.com> Date: Sat, 17 Dec 2022 16:16:24 +0300 Message-ID: <CAFqVybohe7gQ1UADNmvpdaO+rrPFCABYAGrhd4j74BsgB7RN-A@mail.gmail.com> Subject: Re: [gentoo-dev] How to add -std=c++14 to CXXFLAGS of a cmake.eclass based package? To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9401d4c8-19ac-4fa6-ba6c-9bad82cb8dfe X-Archives-Hash: 67247e8c035f3c602f1068f7ffec345a Also, according to commit history, dynamic exception usage was removed in https://github.com/vlabella/GLE/commit/14753e9aba9eb6490358caaeb60f6e36b= a314acc, so you can try to apply this patch. =D1=81=D0=B1, 17 =D0=B4=D0=B5=D0=BA. 2022 =D0=B3. =D0=B2 16:05, Azamat Hack= imov <azamat.hackimov@gmail.com>: > > Hello. > > You need to add > > set(CMAKE_CXX_STANDARD 14) > set(CMAKE_CXX_STANDARD_REQUIRED ON) > > into CMakeLists.txt after project() declaration via patching. Since > this is an upstream issue, you need to notify upstream about C++17 > incompatibility. > > =D1=81=D0=B1, 17 =D0=B4=D0=B5=D0=BA. 2022 =D0=B3. =D0=B2 14:35, Andrey Gr= ozin <grozin@woodpecker.gentoo.org>: > > > > Hello *, > > > > I'm trying to package a new version of sci-visualization/gle which now > > uses cmake. After some patching CMakeLists.txt, it configures > > successfully. But at build time it spits zillion errors > > > > error: ISO C++17 does not allow dynamic exception specifications > > > > The natural thing to try is to add -std=3Dc++14 to CXXFLAGS. So I tried > > > > src_compile() { > > CXXFLAGS=3D"${CXXFLAGS} -std=3Dc++14" cmake_src_compile > > } > > > > but this makes no difference, c++17 is still used. How to convince > > cmake_src_compile to use -std=3Dc++14? > > > > Thanks in advance, > > Andrey > > > > > -- > From Siberia with Love! --=20 >From Siberia with Love!