From 6ed14ff284ae4930cf3647e8f391389054955617 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Wed, 27 Dec 2023 12:26:36 -0800 Subject: [PATCH] build: Add a way to cram in a custom extra library for iv (#4086) It's a little involved to explain why, but at work a combination of libraries and some trickery with static linkage led me to really need a way to inject another library into the mix, just for iv linkage. Signed-off-by: Larry Gritz --- src/iv/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iv/CMakeLists.txt b/src/iv/CMakeLists.txt index 4a0113ef06..698f4d686e 100644 --- a/src/iv/CMakeLists.txt +++ b/src/iv/CMakeLists.txt @@ -2,6 +2,8 @@ # SPDX-License-Identifier: Apache-2.0 # https://github.com/AcademySoftwareFoundation/OpenImageIO +set (OIIO_IV_EXTRA_IV_LIBRARIES "" CACHE STRING "Paths to extra libraries to force iv to link against") + set (CMAKE_AUTOMOC ON) if (Qt5_POSITION_INDEPENDENT_CODE OR Qt6_POSITION_INDEPENDENT_CODE) set (CMAKE_POSITION_INDEPENDENT_CODE ON) @@ -25,6 +27,7 @@ if (iv_enabled AND (Qt5_FOUND OR Qt6_FOUND) AND OPENGL_FOUND) ${OPENGL_LIBRARIES} $ $ + ${OIIO_IV_EXTRA_IV_LIBRARIES} ) if (iv_enabled AND FORCE_OPENGL_1) target_compile_definitions(iv PRIVATE FORCE_OPENGL_1)