mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:28:59 +08:00
[abseil] Fix usage issue (#12022)
This commit is contained in:
parent
95fa5dbbc8
commit
cc06e46a36
@ -1,5 +1,5 @@
|
||||
Source: abseil
|
||||
Version: 2020-03-03-6
|
||||
Version: 2020-03-03-7
|
||||
Homepage: https://github.com/abseil/abseil-cpp
|
||||
Description: an open-source collection designed to augment the C++ standard library.
|
||||
Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.
|
||||
|
@ -52,6 +52,19 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/include/absl/copts
|
||||
${CURRENT_PACKAGES_DIR}/include/absl/strings/testdata
|
||||
${CURRENT_PACKAGES_DIR}/include/absl/time/internal/cctz/testdata)
|
||||
${CURRENT_PACKAGES_DIR}/include/absl/time/internal/cctz/testdata
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/absl/base/config.h
|
||||
"#elif defined(ABSL_CONSUME_DLL)" "#elif 1"
|
||||
)
|
||||
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/absl/base/internal/thread_identity.h
|
||||
"&& !defined(ABSL_CONSUME_DLL)" "&& 0"
|
||||
)
|
||||
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/absl/container/internal/hashtablez_sampler.h
|
||||
"!defined(ABSL_CONSUME_DLL)" "0"
|
||||
)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
Loading…
Reference in New Issue
Block a user