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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:6214:a8a:: with SMTP id ev10mr7518866qvb.191.1592557884105; Fri, 19 Jun 2020 02:11:24 -0700 (PDT) X-Received: by 2002:a9d:638c:: with SMTP id w12mr273644otk.251.1592557883817; Fri, 19 Jun 2020 02:11:23 -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: Fri, 19 Jun 2020 02:11:23 -0700 (PDT) In-Reply-To: <5eec70f6$0$1460$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> <5eec70f6$0$1460$e4fe514c@news.kpn.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <821289e0-cdc7-426f-a5c3-6bfc72369266o@googlegroups.com> Subject: Re: Checking for OS in gnatstudio project file(.gpr) From: Mark Lorenzen Injection-Date: Fri, 19 Jun 2020 09:11:24 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:59127 List-Id: On Friday, June 19, 2020 at 10:01:59 AM UTC+2, ldries46 wrote: > At this point I found within my environment variables on Windows: > OS=3DWindows_NT so I created the following in my .gpr file (I have not=20 > yest looked in Linux, perhaps I shoud add OS=3DLinux there) >=20 > =C2=A0=C2=A0 type OS_Kind is > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("Windows_NT", "Linux"); > =C2=A0=C2=A0 OS : OS_Kind :=3D external("OS", "Windows_NT"); >=20 > =C2=A0=C2=A0 case OS is > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 when "Windows_NT" =3D> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for Object_Dir use "./b= uild"; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for Exec_Dir=C2=A0=C2= =A0 use "."; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 when "Linux" =3D> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for Object_Dir use "./b= uild"; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for Exec_Dir=C2=A0=C2= =A0 use "."; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for Casing=C2=A0=C2=A0= =C2=A0=C2=A0 use "mixedcase"; > =C2=A0=C2=A0 end case; >=20 > The problem now is the casing, that seems not to be available on=20 > Windows. In Linux it looks like I need it because the standard there is= =20 > "lowercase" Is there an overall .gpr file that all project use in which= =20 > I can add or change that ? Casing of what? Do you e.g. have directories with mixed casing? It seems that your Object_Dir and Exec_Dir are the same on the two platform= s. Do you have file names with mixed case? Regards, Mark L