diff options
| author | Phil Christensen <philc@microsoft.com> | 2019-08-23 11:18:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-23 11:18:34 -0700 |
| commit | bd4678610b221ae6cd4911295e84808ea7924cc6 (patch) | |
| tree | 1e51033d924c41cd147f33665990b75fe19ff4b7 /ports/libspatialindex/static.patch | |
| parent | 1245f1dbfc383d33b2fa576f010644de9687280e (diff) | |
| parent | cf447c050c734fc71e5254ea9e05e1bc4a9d208d (diff) | |
| download | vcpkg-bd4678610b221ae6cd4911295e84808ea7924cc6.tar.gz vcpkg-bd4678610b221ae6cd4911295e84808ea7924cc6.zip | |
Merge branch 'master' into multi_line_depends
Diffstat (limited to 'ports/libspatialindex/static.patch')
| -rw-r--r-- | ports/libspatialindex/static.patch | 21 |
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} |
