2021-03-22 12:36:42 +00:00
|
|
|
prusaslicer_add_cmake_project(OpenEXR
|
2021-03-23 18:01:18 +00:00
|
|
|
# GIT_REPOSITORY https://github.com/openexr/openexr.git
|
|
|
|
URL https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v2.5.5.zip
|
|
|
|
URL_HASH SHA256=0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de
|
2021-03-22 12:36:42 +00:00
|
|
|
DEPENDS ${ZLIB_PKG}
|
2021-03-22 19:27:18 +00:00
|
|
|
GIT_TAG v2.5.5
|
2023-05-05 18:39:46 +00:00
|
|
|
PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/OpenEXR.patch
|
2021-03-22 12:36:42 +00:00
|
|
|
CMAKE_ARGS
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DPYILMBASE_ENABLE:BOOL=OFF
|
|
|
|
-DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
|
|
|
|
-DOPENEXR_BUILD_UTILS:BOOL=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
add_debug_dep(dep_OpenEXR)
|
2023-05-05 18:39:46 +00:00
|
|
|
endif ()
|