Skip to content

Commit 27e898e

Browse files
lgritz1div0
authored andcommitted
build: Add a way to cram in a custom extra library for iv (AcademySoftwareFoundation#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 <[email protected]> Signed-off-by: Peter Kovář <[email protected]>
1 parent 3037b71 commit 27e898e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/iv/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# https://github.com/AcademySoftwareFoundation/OpenImageIO
44

5+
set (OIIO_IV_EXTRA_IV_LIBRARIES "" CACHE STRING "Paths to extra libraries to force iv to link against")
6+
57
set (CMAKE_AUTOMOC ON)
68
if (Qt5_POSITION_INDEPENDENT_CODE OR Qt6_POSITION_INDEPENDENT_CODE)
79
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
@@ -25,6 +27,7 @@ if (iv_enabled AND (Qt5_FOUND OR Qt6_FOUND) AND OPENGL_FOUND)
2527
${OPENGL_LIBRARIES}
2628
$<TARGET_NAME_IF_EXISTS:OpenColorIO::OpenColorIO>
2729
$<TARGET_NAME_IF_EXISTS:OpenColorIO::OpenColorIOHeaders>
30+
${OIIO_IV_EXTRA_IV_LIBRARIES}
2831
)
2932
if (iv_enabled AND FORCE_OPENGL_1)
3033
target_compile_definitions(iv PRIVATE FORCE_OPENGL_1)

0 commit comments

Comments
 (0)