]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/jsonnet/0004-incorporate-md5.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / jsonnet / 0004-incorporate-md5.patch
1 diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
2 index d4e77a8..5d36314 100644
3 --- a/core/CMakeLists.txt
4 +++ b/core/CMakeLists.txt
5 @@ -15,7 +15,8 @@ set(LIBJSONNET_HEADERS
6 static_error.h
7 string_utils.h
8 unicode.h
9 - vm.h)
10 + vm.h
11 + ../third_party/md5/md5.h)
12
13 set(LIBJSONNET_SOURCE
14 desugarer.cpp
15 @@ -26,12 +27,13 @@ set(LIBJSONNET_SOURCE
16 pass.cpp
17 static_analysis.cpp
18 string_utils.cpp
19 - vm.cpp)
20 + vm.cpp
21 + ../third_party/md5/md5.cpp)
22
23 if (BUILD_SHARED_BINARIES)
24 add_library(libjsonnet ${LIBJSONNET_HEADERS} ${LIBJSONNET_SOURCE})
25 -add_dependencies(libjsonnet md5 stdlib)
26 -target_link_libraries(libjsonnet md5 nlohmann_json::nlohmann_json)
27 +add_dependencies(libjsonnet stdlib)
28 +target_link_libraries(libjsonnet nlohmann_json::nlohmann_json)
29
30 file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/../include/libjsonnet.h JSONNET_VERSION_DEF
31 REGEX "[#]define[ \t]+LIB_JSONNET_VERSION[ \t]+")
32 @@ -54,8 +56,8 @@ endif()
33 if (BUILD_STATIC_LIBS)
34 # Static library for jsonnet command-line tool.
35 add_library(libjsonnet_static STATIC ${LIBJSONNET_SOURCE})
36 - add_dependencies(libjsonnet_static md5 stdlib)
37 - target_link_libraries(libjsonnet_static md5 nlohmann_json::nlohmann_json)
38 + add_dependencies(libjsonnet_static stdlib)
39 + target_link_libraries(libjsonnet_static nlohmann_json::nlohmann_json)
40 set_target_properties(libjsonnet_static PROPERTIES OUTPUT_NAME jsonnet)
41 install(TARGETS libjsonnet_static DESTINATION "${CMAKE_INSTALL_LIBDIR}")
42 endif()