mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 12:37:55 +08:00
[c-ares] Fix support for static/md
This commit is contained in:
parent
af3f6a8fd6
commit
2071719138
@ -1,4 +1,4 @@
|
||||
Source: c-ares
|
||||
Version: 1.12.1-dev-40eb41f
|
||||
Version: 1.12.1-dev-40eb41f-1
|
||||
Description: A C library for asynchronous DNS requests
|
||||
Build-Depends:
|
@ -28,14 +28,17 @@ vcpkg_install_cmake()
|
||||
|
||||
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}/debug/bin)
|
||||
else()
|
||||
file(GLOB RELEASE_EXE_FILES "${CURRENT_PACKAGES_DIR}/bin/*.exe")
|
||||
file(REMOVE ${RELEASE_EXE_FILES})
|
||||
file(GLOB DEBUG_EXE_FILES "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe")
|
||||
file(REMOVE ${DEBUG_EXE_FILES})
|
||||
file(GLOB EXE_FILES
|
||||
"${CURRENT_PACKAGES_DIR}/bin/*.exe"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin/*.exe"
|
||||
)
|
||||
if (EXE_FILES)
|
||||
file(REMOVE ${EXE_FILES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
Loading…
Reference in New Issue
Block a user