[cmake-developers] Improving OpenSSL version support

Rolf Eike Beer eike at sf-mail.de
Thu Jan 12 18:12:53 EST 2012


Am Donnerstag 12 Januar 2012, 16:58:05 schrieben Sie:
> On 1/12/2012 3:42 PM, Rolf Eike Beer wrote:
> > I just pushed the topic "openssl-version" to stage and would like
> > someone to review it. There are 2 patches in it. The first one is an
> > obvious bugfix and makes the version number detection work at all with
> > OpenSSL 1.0.0! Currently the version number shown is "1..", which is
> > fixed by the first patch.
> > 
> > The second one adds an additional variable, OPENSSL_VERSION_STRING, like
> > other modules also have. This variable holds the complete version
> > number, e.g. "1.0.0f".
> 
> The opensslv.h in 1.0.0 documents the version number encoding, and
> it looks like it changed a bit through some versions.  Please add
> comments near the parsing code that explain how it handles this.

Done.

> Also, the examples given in the header are confusing because they
> leave out the patch level from the string.  I think the patch level
> can be included as a fourth component in our OPENSSL_VERSION var.

Or just put the normal OpenSSL version string in there? It works for 
VERSION_LESS and friends. And since FIND_PACKAGE() handles version selection 
anyway I don't see what a user should have to do with it anyway.

I've pushed 2 more changes to that branch. The first one add documentation, 
the second one parses the version number only once and puts the result in a 
list and uses that elements later on. And it get's rid of some really long 
lines.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120113/e7278849/attachment.sig>


More information about the cmake-developers mailing list