diff --git a/src/libOpenImageIO/CMakeLists.txt b/src/libOpenImageIO/CMakeLists.txt index 309c7dfb49..d08e15fccb 100644 --- a/src/libOpenImageIO/CMakeLists.txt +++ b/src/libOpenImageIO/CMakeLists.txt @@ -143,6 +143,7 @@ target_link_libraries (OpenImageIO OpenImageIO_Util ${OPENIMAGEIO_IMATH_DEPENDENCY_VISIBILITY} ${OPENIMAGEIO_IMATH_TARGETS} + fmt::fmt PRIVATE ${OPENIMAGEIO_OPENEXR_TARGETS} ${OpenCV_LIBRARIES} @@ -155,7 +156,6 @@ target_link_libraries (OpenImageIO ZLIB::ZLIB $ ${CMAKE_DL_LIBS} - fmt::fmt ) if (FREETYPE_FOUND) diff --git a/src/libutil/CMakeLists.txt b/src/libutil/CMakeLists.txt index 10cc4b0c44..b394d55156 100644 --- a/src/libutil/CMakeLists.txt +++ b/src/libutil/CMakeLists.txt @@ -20,6 +20,7 @@ target_link_libraries (OpenImageIO_Util ${GCC_ATOMIC_LIBRARIES} ${OPENIMAGEIO_IMATH_DEPENDENCY_VISIBILITY} ${OPENIMAGEIO_IMATH_TARGETS} + fmt::fmt PRIVATE $ $