]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/opencolorio/0005-tinyxml-dependency-search.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / opencolorio / 0005-tinyxml-dependency-search.patch
1 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
2 index 45e55f9..f4b687d 100644
3 --- a/src/core/CMakeLists.txt
4 +++ b/src/core/CMakeLists.txt
5 @@ -77,7 +77,12 @@ endif()
6 if(OCIO_BUILD_STATIC)
7 list(REMOVE_ITEM core_src_files ${CMAKE_SOURCE_DIR}/src/core/UnitTest.cpp)
8 add_library(OpenColorIO_STATIC STATIC ${EXTERNAL_OBJECTS} ${core_src_files})
9 - add_dependencies(OpenColorIO_STATIC TINYXML_LIB)
10 +
11 + if(USE_EXTERNAL_TINYXML)
12 + target_link_libraries(OpenColorIO_STATIC ${TINYXML_LIBRARIES})
13 + else(USE_EXTERNAL_TINYXML)
14 + add_dependencies(OpenColorIO_STATIC TINYXML_LIB)
15 + endif(USE_EXTERNAL_TINYXML)
16
17 if(USE_EXTERNAL_YAML)
18 target_link_libraries(OpenColorIO_STATIC ${YAML_CPP_LIBRARIES})