mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-19 12:14:20 -04:00
Support building with OpenEXR 3
Try to find OpenEXR 3 first via the upstream cmake config and fallback to using our FindOpenEXR
This commit is contained in:
committed by
Albert Astals Cid
parent
224f892b09
commit
2429c95336
@ -43,7 +43,10 @@ if (UNIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(OpenEXR)
|
||||
find_package(OpenEXR 3.0 CONFIG QUIET)
|
||||
if(NOT OpenEXR_FOUND)
|
||||
find_package(OpenEXR)
|
||||
endif()
|
||||
set_package_properties(OpenEXR PROPERTIES
|
||||
TYPE OPTIONAL
|
||||
PURPOSE "Required for the QImage plugin for OpenEXR images"
|
||||
|
Reference in New Issue
Block a user