Be more flexible about version number quoting

Some versions of libtool write quotes around the version number, some
do not; we must handle both cases.
This commit is contained in:
Roland Kaufmann 2013-02-08 12:38:09 +01:00
parent 12dfe529ff
commit 79f64d2c16

View File

@ -116,7 +116,7 @@ function (configure_la name target)
endif (libtool_MAIN)
if (ltversion_STRING)
string (REGEX REPLACE
"^VERSION=\"(.*)\""
"^VERSION=\"?(.*)\"?"
"\\1"
ltversion
${ltversion_STRING}