]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/unicorn-lib/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / unicorn-lib / portfile.cmake
1 if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
2 message("unicorn-lib is a static library, now build with static.")
3 set(VCPKG_LIBRARY_LINKAGE static)
4 endif()
5
6 vcpkg_from_github(
7 OUT_SOURCE_PATH SOURCE_PATH
8 REPO CaptainCrowbar/unicorn-lib
9 REF 01cc7fcd2d60dbc083767d448477638e5ec8b92a # 2020-03-02
10 SHA512 d8ffb80c589b34d850a507570d7d8ec707a6a23b469d484f47c80566883bd4883da23a4701434f361231a7615065ff5f1e42e40c028975f43f198c307353ec9d
11 HEAD_REF master
12 )
13
14 file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
15
16 vcpkg_configure_cmake(
17 SOURCE_PATH ${SOURCE_PATH}
18 PREFER_NINJA
19 OPTIONS_DEBUG
20 -DUNICORN_LIB_SKIP_HEADERS=ON
21 )
22
23 vcpkg_install_cmake()
24 vcpkg_copy_pdbs()
25
26 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
27
28 # Handle copyright
29 file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)