From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:374e:: with SMTP id p14mr3939669qtb.361.1592480462625; Thu, 18 Jun 2020 04:41:02 -0700 (PDT) X-Received: by 2002:a05:6808:5cf:: with SMTP id d15mr2537786oij.83.1592480462430; Thu, 18 Jun 2020 04:41:02 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Jun 2020 04:41:02 -0700 (PDT) In-Reply-To: <5eeb50d9$0$1208$e4fe514c@news.kpn.nl> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=185.34.132.200; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq NNTP-Posting-Host: 185.34.132.200 References: <5eeb50d9$0$1208$e4fe514c@news.kpn.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Checking for OS in gnatstudio project file(.gpr) From: Mark Lorenzen Injection-Date: Thu, 18 Jun 2020 11:41:02 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:59120 List-Id: On Thursday, June 18, 2020 at 1:33:20 PM UTC+2, ldries46 wrote: > I em in neede for a possibility to check within a .gpr file which=20 > operating system is runnung. Is there a way to do that? So I can use the= =20 > same project file without changing=C2=A0 the .gpr file when compiling a= =20 > program on different OS'ses. Can't you define a scenario variable and set it on the command line? Then i= t's only the command line that differs between the two builds. Regards, Mark L