]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/opencolorio-tools/0001-lcms-dependency-search.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / opencolorio-tools / 0001-lcms-dependency-search.patch
1 diff --git a/src/apps/ociobakelut/CMakeLists.txt b/src/apps/ociobakelut/CMakeLists.txt
2 index d31b4e3..2b57d1c 100644
3 --- a/src/apps/ociobakelut/CMakeLists.txt
4 +++ b/src/apps/ociobakelut/CMakeLists.txt
5 @@ -5,6 +5,35 @@ if(LCMS_FOUND AND (LCMS_VERSION VERSION_EQUAL 2.1 OR LCMS_VERSION VERSION_GREATE
6 FIND_PACKAGE_MESSAGE(LCMS "Found lcms: ${LCMS_LIBRARIES}"
7 "${LCMS_INCLUDE_DIR}")
8 else()
9 + find_path(LCMS_INCLUDE_DIRS
10 + NAMES
11 + lcms2.h
12 + lcms2_plugin.h
13 + HINTS
14 + ${LCMS_INCLUDEDIR}
15 + ${LCMS_INCLUDE_DIRS}
16 + )
17 +
18 + find_library(LCMS_LIBRARIES
19 + LIBRARY_NAMES
20 + lcms
21 + lcms2
22 + HINTS
23 + ${LCMS_LIBRARY_DIRS}
24 + )
25 +
26 + get_filename_component(LCMS_LIBRARY_DIRS ${LCMS_LIBRARIES} DIRECTORY)
27 +
28 + find_package_handle_standard_args(LCMS
29 + REQUIRED_VARS
30 + LCMS_LIBRARIES
31 + LCMS_LIBRARY_DIRS
32 + LCMS_INCLUDE_DIRS
33 + )
34 + mark_as_advanced(LCMS_LIBRARIES LCMS_INCLUDE_DIRS LCMS_LIBRARY_DIRS LCMS_FOUND)
35 +endif()
36 +
37 +if(NOT LCMS_FOUND)
38 find_package(Git)
39 if(NOT GIT_EXECUTABLE)
40 message("Git not found, could not build external LCMS as we cannot apply patch")