[CMake] Re: map structure on cmake script

Brandon Van Every bvanevery at gmail.com
Mon Dec 17 15:27:40 EST 2007


On Dec 17, 2007 3:00 PM, Rodolfo Schulz de Lima <rodolfo at rodsoft.org> wrote:
> Brandon Van Every escreveu:
> > On Dec 17, 2007 2:29 PM, Rodolfo Schulz de Lima <rodolfo at rodsoft.org> wrote:
> >> A workaround would be
> >> computing a hash from the string and using it as a key, but once again,
> >> it'd be a pain in the *** to do it in cmake script.
> >
> > I wouldn't shy away from trying it though.  I wrote a "regex negation
> > operator" in CMake script to work around CMake's limitations.  The
>
> No... too difficult for not so much gain. I can live with a braindead
> solution (using lists) until cmake supports *cough* lua *cough*. :)

What's so hard about writhing a hash function using only MATH(EXPR
...) ?  Geez, once upon a time there were guys who wrote this using
punch cards.


Cheers,
Brandon Van Every


More information about the CMake mailing list