Skip to content

Commit

Permalink
FIX: deps: fix the compiling issue under windows
Browse files Browse the repository at this point in the history
caused by previous gcc patch from linux
github: #3064

Change-Id: If6075068b961b956fc2e0ca369adc01b2f50b0db
  • Loading branch information
lanewei120 committed Dec 21, 2023
1 parent d12181b commit 50c43d1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions deps/OpenEXR/OpenEXR.cmake
@@ -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
# 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
PATCH_COMMAND ${PATCH_CMD} ${CMAKE_CURRENT_LIST_DIR}/0001-OpenEXR-GCC13.patch
PATCH_COMMAND ${_patch_cmd}
DEPENDS ${ZLIB_PKG}
GIT_TAG v2.5.5
CMAKE_ARGS
Expand All @@ -15,4 +21,4 @@ bambustudio_add_cmake_project(OpenEXR

if (MSVC)
add_debug_dep(dep_OpenEXR)
endif ()
endif ()

0 comments on commit 50c43d1

Please sign in to comment.