FIX: deps: fix the compiling issue under windows

caused by previous gcc patch from linux
github: https://github.com/bambulab/BambuStudio/issues/3064

Change-Id: If6075068b961b956fc2e0ca369adc01b2f50b0db
This commit is contained in:
lane.wei 2023-12-21 08:57:53 +08:00 committed by Lane.Wei
parent d12181bf3d
commit 50c43d10ca

View File

@ -1,8 +1,14 @@
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(_patch_cmd ${PATCH_CMD} ${CMAKE_CURRENT_LIST_DIR}/0001-OpenEXR-GCC13.patch)
else()
set(_patch_cmd "")
endif()
bambustudio_add_cmake_project(OpenEXR bambustudio_add_cmake_project(OpenEXR
# GIT_REPOSITORY https://github.com/openexr/openexr.git # GIT_REPOSITORY https://github.com/openexr/openexr.git
URL https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v2.5.5.zip URL https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v2.5.5.zip
URL_HASH SHA256=0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de URL_HASH SHA256=0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de
PATCH_COMMAND ${PATCH_CMD} ${CMAKE_CURRENT_LIST_DIR}/0001-OpenEXR-GCC13.patch PATCH_COMMAND ${_patch_cmd}
DEPENDS ${ZLIB_PKG} DEPENDS ${ZLIB_PKG}
GIT_TAG v2.5.5 GIT_TAG v2.5.5
CMAKE_ARGS CMAKE_ARGS