From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8fa98f4202df5e1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: gnat Project files Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <316f58b2-1151-4124-a416-e0345be66474@x15g2000vbr.googlegroups.com> <2b75c222-406d-45ae-b091-2f7a4047d3ef@p35g2000yqh.googlegroups.com> Date: Wed, 4 Nov 2009 15:50:59 +0100 Message-ID: <1tzhcfeh461no.1ulcgpyaijyz4.dlg@40tude.net> NNTP-Posting-Date: 04 Nov 2009 15:50:59 CET NNTP-Posting-Host: b50e186d.newsspool2.arcor-online.net X-Trace: DXC=Y7e_[XHP\3kIkjb;<8iR=aA9EHlD;3Ycb4Fo<]lROoRa8kFo6el1]`7MU]k X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8962 Date: 2009-11-04T15:50:59+01:00 List-Id: On Wed, 4 Nov 2009 06:20:32 -0800 (PST), Hibou57 (Yannick Duch�ne) wrote: > On 4 nov, 14:23, AdaMagica wrote: >>> Yes, I have the same problem too. So far the best solution I know is: >> >>> with "common.gpr"; >>> project Dependent is >>> � �for Object_Dir use Common'Object_Dir; >> >> This is not the best solution, it's *the* solution AdaCore has in mind. > > Currently, I do not use GPS, nor the GNAT project facilities, but > still have a question : is it possible to use a relative path for this > common path ? I mean, a relative path which would be interpreted > relatively to another path specific to each project. Sure. For example: � for Object_Dir use "../../" & Common'Object_Dir; P.S. '/' works under Windows as if it were '\'. Also you should better use all quoted file names in lower case to make it working under both Linux and Windows. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de