]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libspatialindex/static.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / libspatialindex / static.patch
1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2 index e6b733bd..8f227ab0 100644
3 --- a/src/CMakeLists.txt
4 +++ b/src/CMakeLists.txt
5 @@ -194,9 +194,13 @@ if (NOT WITH_STATIC_LASZIP)
6 endif()
7 endif()
8
9 -add_library(${SIDX_LIB_NAME} SHARED ${SIDX_SOURCES})
10 -
11 -add_library(${SIDX_C_LIB_NAME} SHARED ${SIDX_CAPI_CPP})
12 +if(BUILD_SHARED_LIBS)
13 + add_library(${SIDX_LIB_NAME} SHARED ${SIDX_SOURCES})
14 + add_library(${SIDX_C_LIB_NAME} SHARED ${SIDX_CAPI_CPP})
15 +else(BUILD_SHARED_LIBS)
16 + add_library(${SIDX_LIB_NAME} STATIC ${SIDX_SOURCES})
17 + add_library(${SIDX_C_LIB_NAME} STATIC ${SIDX_CAPI_CPP})
18 +endif(BUILD_SHARED_LIBS)
19
20 target_link_libraries(${SIDX_C_LIB_NAME}
21 ${SIDX_LIB_NAME}