From 6e4c496171c1ac0c30ffbec3ef7c080e97625bcc Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 1 Jun 2019 10:31:44 +0200 Subject: [PATCH] Fix Findsodium.cmake SODIUM_VERSION_STRING regex --- contrib/Findsodium.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/Findsodium.cmake b/contrib/Findsodium.cmake index a124f1c8..076ff370 100644 --- a/contrib/Findsodium.cmake +++ b/contrib/Findsodium.cmake @@ -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}")