Fix Findsodium.cmake SODIUM_VERSION_STRING regex

This commit is contained in:
Frank Denis 2019-06-01 10:31:44 +02:00
parent d1a1d85e84
commit 6e4c496171

View File

@ -213,7 +213,7 @@ if(sodium_INCLUDE_DIR)
string(
REGEX
REPLACE
".*#[ \t]*define[ \t]*sodium_VERSION_STRING_STRING[ \t]*\"([^\n]*)\".*"
".*define[ \t]+SODIUM_VERSION_STRING[^\"]+\"([^\"]+)\".*"
"\\1"
sodium_VERSION_STRING
"${_VERSION_HEADER_CONTENT}")