]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libui/001-fix-cmake.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / libui / 001-fix-cmake.patch
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index c7193fbb..50c997f8 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -152,8 +152,7 @@ add_subdirectory("common")
6 add_subdirectory("${_OSNAME}")
7 add_library(libui ${_LIBUI_SOURCES})
8 target_include_directories(libui
9 - PUBLIC .
10 - PRIVATE ${_LIBUI_INCLUEDIRS})
11 + PUBLIC $<INSTALL_INTERFACE:include>)
12 target_compile_definitions(libui
13 PRIVATE ${_LIBUI_DEFS})
14 # cmake produces this for us by default but only for shared libraries
15 @@ -229,10 +228,30 @@ macro(_add_exec _name)
16 # TODOfor some reason these don't propagate
17 if(NOT WIN32)
18 target_include_directories(${_name}
19 - PUBLIC .)
20 + PUBLIC $<INSTALL_INTERFACE:include>)
21 target_compile_options(${_name}
22 PUBLIC ${_COMMON_CFLAGS})
23 endif()
24 endmacro()
25 add_subdirectory("test")
26 add_subdirectory("examples")
27 +
28 +if(BUILD_SHARED_LIBS)
29 + install(TARGETS ${PROJECT_NAME}
30 + EXPORT ${PROJECT_NAME}-config
31 + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
32 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
33 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
34 +else()
35 + install(TARGETS ${PROJECT_NAME}
36 + EXPORT ${PROJECT_NAME}-config
37 + DESTINATION ${CMAKE_INSTALL_LIBDIR})
38 +endif()
39 +
40 +install(EXPORT ${PROJECT_NAME}-config
41 + FILE unofficial-${PROJECT_NAME}-config.cmake
42 + NAMESPACE unofficial::libui::
43 + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
44 +)
45 +
46 +install(FILES ui.h DESTINATION include)