]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/xproperty/fix-target.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / xproperty / fix-target.patch
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 5dcddc2..9d99227 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -7,7 +7,7 @@
6 ############################################################################
7
8 cmake_minimum_required(VERSION 3.1)
9 -project(xproperty)
10 +project(xproperty CXX)
11
12 set(XPROPERTY_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
13
14 @@ -28,7 +28,8 @@ message(STATUS "xproperty v${${PROJECT_NAME}_VERSION}")
15 # Dependencies
16 # ============
17
18 -find_package(xtl 0.5.3 REQUIRED)
19 +set(xtl_REQUIRED_VERSION 0.5.3)
20 +find_package(xtl ${xtl_REQUIRED_VERSION} REQUIRED)
21 message(STATUS "Found xtl: ${xtl_INCLUDE_DIRS}/xtl")
22
23 # Build
24 diff --git a/xpropertyConfig.cmake.in b/xpropertyConfig.cmake.in
25 index 192c04f..38b305a 100644
26 --- a/xpropertyConfig.cmake.in
27 +++ b/xpropertyConfig.cmake.in
28 @@ -15,7 +15,12 @@
29
30 @PACKAGE_INIT@
31
32 -set(PN xproperty)
33 -set_and_check(${PN}_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@")
34 -set(${PN}_LIBRARY "")
35 -check_required_components(${PN})
36 +include(CMakeFindDependencyMacro)
37 +find_dependency(xtl @xtl_REQUIRED_VERSION@)
38 +
39 +if(NOT TARGET @PROJECT_NAME@)
40 + include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
41 + get_target_property(@PROJECT_NAME@_INCLUDE_DIR @PROJECT_NAME@ INTERFACE_INCLUDE_DIRECTORIES)
42 +endif()
43 +
44 +set(@PROJECT_NAME@_LIBRARY "")