[CMake] escaping!
Andrew Roark
andrewjroark at yahoo.com
Mon Dec 10 20:00:51 EST 2007
----- Original Message ----
> From: Hendrik Sattler <post at hendrik-sattler.de>
> To: cmake at cmake.org
> Sent: Monday, December 10, 2007 7:29:21 PM
> Subject: Re: [CMake] escaping!
>
> Am Dienstag 11 Dezember 2007 schrieb Andrew Roark:
> > > Is it possible to have a command like this?
> > > ADD_CUSTOM_COMMAND(OUTPUT ${my_file}
> > > ...
> > > COMMAND find . -name "*xml" > /dev/null
> > > ...
> > > VERBATIM
> > > )
> >
> > Not sure if you got a reply to this, nor if the following is
> any
>
help,
> > BUT...
> >
> > For any tricky file operations (like "all files ending with
> XML
>
greater
> > than 2Kb using DOS newlines" etc) I would personally write a
> python
>
script
> > (e.g. ROOTDIR/util/xmlfinder.py) to do that work and make the command
> > simply invoke the python script. This has the added advantage
> of
>
being
> > cross-platform as well, keeping the CMakeLists.txt file simpler.
>
> I never saw a Windows system with an installed Python. Strange isn't
> it
>
;)
I see -- you're using one of those Windows systems that comes pre-installed with CMake?...
Andrew
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the CMake
mailing list