File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ option(OTIO_INSTALL_PYTHON_MODULES "Install OTIO pure Python modules/files" O
3333option (OTIO_INSTALL_COMMANDLINE_TOOLS "Install the OTIO command line tools" ON )
3434option (OTIO_FIND_IMATH "Find Imath using find_package" OFF )
3535option (OTIO_FIND_RAPIDJSON "Find RapidJSON using find_package" OFF )
36- option (OTIO_FIND_ZLIB "Find zlib using find_package" OFF )
36+ option (OTIO_FIND_BUNDLE_LIBS "Find minizip and zlib using find_package" OFF )
37+ set (OTIO_BUNDLE_LIBS
38+ MINIZIP::minizipstatic ZLIB::ZLIBSTATIC
39+ CACHE STRING "Bundle libraries to link against (minizip and zlib)" )
3740set (OTIO_PYTHON_INSTALL_DIR "" CACHE STRING "Python installation dir (such as the site-packages dir)" )
3841
3942# Build options
@@ -264,8 +267,8 @@ else()
264267 message (STATUS "Using src/deps/rapidjson by default" )
265268endif ()
266269
267- #----- zlib and minizip
268- if (OTIO_FIND_ZLIB )
270+ #----- minizip and zlib
271+ if (OTIO_FIND_BUNDLE_LIBS )
269272 find_package (ZLIB CONFIG REQUIRED)
270273 find_package (minizip CONFIG REQUIRED)
271274 if (ZLIB_FOUND)
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set(DEPS_SUBMODULES pybind11)
99if (NOT OTIO_FIND_RAPIDJSON)
1010 set (DEPS_SUBMODULES ${DEPS_SUBMODULES} rapidjson)
1111endif ()
12- if (NOT OTIO_FIND_ZLIB )
12+ if (NOT OTIO_FIND_BUNDLE_LIBS )
1313 set (DEPS_SUBMODULES ${DEPS_SUBMODULES} zlib)
1414endif ()
1515
@@ -41,7 +41,7 @@ if(NOT OTIO_FIND_IMATH)
4141 endif ()
4242endif ()
4343
44- if (NOT OTIO_FIND_ZLIB )
44+ if (NOT OTIO_FIND_BUNDLE_LIBS )
4545 set (BUILD_SHARED_LIBS OFF )
4646 set (BUILD_TESTING OFF )
4747 set (CMAKE_POSITION_INDEPENDENT_CODE ON )
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ endif()
107107
108108target_link_libraries (opentimelineio
109109 PUBLIC opentime Imath::Imath
110- PRIVATE MINIZIP::minizipstatic ZLIB::ZLIBSTATIC )
110+ PRIVATE ${OTIO_BUNDLE_LIBS} )
111111
112112set_target_properties (opentimelineio PROPERTIES
113113 DEBUG_POSTFIX "${OTIO_DEBUG_POSTFIX} "
You can’t perform that action at this time.
0 commit comments