[c-ares] Fix support for static/md

This commit is contained in:
Robert Schumacher 2017-06-09 15:39:32 -07:00
parent af3f6a8fd6
commit 2071719138
2 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
Source: c-ares Source: c-ares
Version: 1.12.1-dev-40eb41f Version: 1.12.1-dev-40eb41f-1
Description: A C library for asynchronous DNS requests Description: A C library for asynchronous DNS requests
Build-Depends: Build-Depends:

View File

@ -28,14 +28,17 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/c-ares") vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/c-ares")
if(VCPKG_CRT_LINKAGE STREQUAL static) if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
else() else()
file(GLOB RELEASE_EXE_FILES "${CURRENT_PACKAGES_DIR}/bin/*.exe") file(GLOB EXE_FILES
file(REMOVE ${RELEASE_EXE_FILES}) "${CURRENT_PACKAGES_DIR}/bin/*.exe"
file(GLOB DEBUG_EXE_FILES "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe") "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe"
file(REMOVE ${DEBUG_EXE_FILES}) )
if (EXE_FILES)
file(REMOVE ${EXE_FILES})
endif()
endif() endif()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()