Merge pull request #4966 from studiofuga/dev/studiofuga/geos

[Geos] Remove empty */bin directories when statically linking
This commit is contained in:
Phil Christensen 2018-12-20 22:58:43 -08:00 committed by GitHub
commit 6ec8eebaeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: geos Source: geos
Version: 3.6.3-2 Version: 3.6.3-3
Description: Geometry Engine Open Source Description: Geometry Engine Open Source

View File

@ -26,6 +26,10 @@ vcpkg_configure_cmake(
) )
vcpkg_install_cmake() vcpkg_install_cmake()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
if(EXISTS ${CURRENT_PACKAGES_DIR}/bin/geos-config) if(EXISTS ${CURRENT_PACKAGES_DIR}/bin/geos-config)