aboutsummaryrefslogtreecommitdiff
path: root/ports/libspatialindex/static.patch
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2019-08-21 12:00:35 +0200
committerGitHub <noreply@github.com>2019-08-21 12:00:35 +0200
commit18d61a3fb140ac1f4d9d605e02fdd614e1c2ff14 (patch)
treeef87d17ad7f6648a47c3367bf2acca5197a107dd /ports/libspatialindex/static.patch
parent70f4aabbe8bf5273e11a03f804d4361354cf0a11 (diff)
parente5bf7eae99f3be342bfdd7a3c999daba62d4436a (diff)
downloadvcpkg-18d61a3fb140ac1f4d9d605e02fdd614e1c2ff14.tar.gz
vcpkg-18d61a3fb140ac1f4d9d605e02fdd614e1c2ff14.zip
Merge branch 'master' into path_separator
Diffstat (limited to 'ports/libspatialindex/static.patch')
-rw-r--r--ports/libspatialindex/static.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/ports/libspatialindex/static.patch b/ports/libspatialindex/static.patch
new file mode 100644
index 000000000..bf783bcca
--- /dev/null
+++ b/ports/libspatialindex/static.patch
@@ -0,0 +1,21 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index e6b733bd..8f227ab0 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -194,9 +194,13 @@ if (NOT WITH_STATIC_LASZIP)
+ endif()
+ endif()
+
+-add_library(${SIDX_LIB_NAME} SHARED ${SIDX_SOURCES})
+-
+-add_library(${SIDX_C_LIB_NAME} SHARED ${SIDX_CAPI_CPP})
++if(BUILD_SHARED_LIBS)
++ add_library(${SIDX_LIB_NAME} SHARED ${SIDX_SOURCES})
++ add_library(${SIDX_C_LIB_NAME} SHARED ${SIDX_CAPI_CPP})
++else(BUILD_SHARED_LIBS)
++ add_library(${SIDX_LIB_NAME} STATIC ${SIDX_SOURCES})
++ add_library(${SIDX_C_LIB_NAME} STATIC ${SIDX_CAPI_CPP})
++endif(BUILD_SHARED_LIBS)
+
+ target_link_libraries(${SIDX_C_LIB_NAME}
+ ${SIDX_LIB_NAME}