Re: GLOB for directories
Mateusz Loskot via Boost-build <[email protected]> Fri, 6 Mar 2020 17:27:51 +0100
| Newsgroups | gmane.comp.lib.boost.build |
|---|---|
| Message-ID | <CABUeae9Cad3X9=RvS_zVW1PkaXcfAenn6p3DtLczQJUjjks1Pg@mail.gmail.com> |
On Fri, 6 Mar 2020 at 17:13, Edward Diener via Boost-build <[email protected]> wrote: > On 3/6/2020 4:53 AM, Mateusz Loskot via Boost-build wrote: > > On Fri, 6 Mar 2020 at 10:31, Edward Diener via Boost-build <[email protected]> wrote: > >> > >> How can I then test for a directory as opposed to a non-directory file in a GLOB result? > > > > You could try to negate CHECK_IF_FILE, a built-in which checks if file > > is a file. > > Thanks ! > > An undocumented built-in ? Yes, I think it is not displayed in the docs. I learned about it while learning how to glob for .hpp files to generate some targets, and reading the .jam sources https://github.com/boostorg/build/blob/master/src/util/path.jam#L272 Best regards, -- Mateusz Loskot, http://mateusz.loskot.net _______________________________________________ Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build