Commit 8391d99b authored by Volker Krause's avatar Volker Krause
Browse files

Adapt to ZXing changing its library target name

parent b1a9da58
......@@ -74,7 +74,7 @@ if (HAVE_POPPLER)
list(GET _poppler_version_components 2 POPPLER_VERSION_PATCH)
endif()
if (TARGET ZXing::Core)
if (TARGET ZXing::ZXing OR TARGET ZXing::Core)
set(HAVE_ZXING ON)
endif()
......
......@@ -120,7 +120,9 @@ if (HAVE_POPPLER)
target_link_libraries(KPimItinerary PRIVATE Poppler::Core)
endif()
if (HAVE_ZXING)
if (TARGET ZXing::ZXing)
target_link_libraries(KPimItinerary PRIVATE ZXing::ZXing)
elseif (TARGET ZXing::Core)
target_link_libraries(KPimItinerary PRIVATE ZXing::Core)
endif()
......
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