Skip to content

Commit

Permalink
Include libdeflate as submodule rather than download at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Jun 19, 2024
1 parent 35863e9 commit 8a2234c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@
[submodule "scripts/create-dmg"]
path = scripts/create-dmg
url = https://github.com/create-dmg/create-dmg
[submodule "dependencies/libdeflate"]
path = dependencies/libdeflate
url = https://github.com/ebiggers/libdeflate
7 changes: 7 additions & 0 deletions dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ set(IMATH_INSTALL OFF CACHE BOOL " " FORCE)
set(IMATH_INSTALL_PKG_CONFIG OFF CACHE BOOL " " FORCE)
add_subdirectory(Imath)

set(LIBDEFLATE_BUILD_SHARED_LIB OFF CACHE BOOL " " FORCE)
add_subdirectory(libdeflate)

set(OPENEXR_FORCE_INTERNAL_DEFLATE ON CACHE BOOL " " FORCE)
set(EXR_DEFLATE_LIB libdeflate::libdeflate_static)
set(EXR_DEFLATE_VERSION ${libdeflate_VERSION})

set(OPENEXR_INSTALL OFF CACHE BOOL " " FORCE)
set(OPENEXR_INSTALL_TOOLS OFF CACHE BOOL " " FORCE)
set(OPENEXR_INSTALL_PKG_CONFIG OFF CACHE BOOL " " FORCE)
Expand Down
1 change: 1 addition & 0 deletions dependencies/libdeflate
Submodule libdeflate added at b03254

0 comments on commit 8a2234c

Please sign in to comment.