aboutsummaryrefslogtreecommitdiff
path: root/ports/libspatialindex/static.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-11-22 09:47:40 -0800
committerGitHub <noreply@github.com>2019-11-22 09:47:40 -0800
commit45f4b820e5743b89bca3508ba2028cdd5d8bbd17 (patch)
treef874a8c4a7392309bdbb86447288597ec0a4a281 /ports/libspatialindex/static.patch
parent62d67d3bf8eeff1afa8009041fd08b8822676b7b (diff)
parent8831e8f25f1ff6546ee4a5291b91d599421637b3 (diff)
downloadvcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.tar.gz
vcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.zip
Merge branch 'master' into vcpkg_nuget
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}