Fix build with qcoro 0.4
Cmake targets and config files have been renamed. Check for the 0.4 name first and fall back to the old one
This commit is contained in:
committed by
Nicolas Fella
parent
ee59006c08
commit
9300e65239
@@ -108,7 +108,10 @@ set_package_properties(KQuickImageEditor PROPERTIES
|
||||
PURPOSE "Add image editing capability to image attachments"
|
||||
)
|
||||
|
||||
find_package(QCoro REQUIRED)
|
||||
find_package(QCoro5 COMPONENTS Coro QUIET)
|
||||
if(NOT QCoro5_FOUND)
|
||||
find_package(QCoro REQUIRED)
|
||||
endif()
|
||||
|
||||
qcoro_enable_coroutines()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user