Commit 7098c8be authored by Volker Krause's avatar Volker Krause
Browse files

Fix build with latest Poppler

That now has a leading 0 in its minor version number.
parent ed6ddeb3
......@@ -71,10 +71,10 @@ if(TARGET Poppler::Core)
endif()
endif()
if (HAVE_POPPLER)
string(REPLACE "." ";" _poppler_version_components ${Poppler_VERSION})
list(GET _poppler_version_components 0 POPPLER_VERSION_MAJOR)
list(GET _poppler_version_components 1 POPPLER_VERSION_MINOR)
list(GET _poppler_version_components 2 POPPLER_VERSION_PATCH)
string(REGEX MATCH "([0-9]+)\.0*([0-9]+)\.0*([0-9]+)" _match ${Poppler_VERSION})
set(POPPLER_VERSION_MAJOR ${CMAKE_MATCH_1})
set(POPPLER_VERSION_MINOR ${CMAKE_MATCH_2})
set(POPPLER_VERSION_PATCH ${CMAKE_MATCH_3})
endif()
if (TARGET ZXing::ZXing OR TARGET ZXing::Core)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment