diff options
| author | CJ Johnson <6013273+CJ-Johnson@users.noreply.github.com> | 2019-03-28 11:11:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-28 11:11:30 -0400 |
| commit | 8d8cea2be0e9e00bbbd92f49585615925321bb51 (patch) | |
| tree | 67fadada3cee121636dc85de3c1d7470a544270d | |
| parent | 78a8de6cf468dc3d3301b26fedae7969bb366a75 (diff) | |
| download | vcpkg-8d8cea2be0e9e00bbbd92f49585615925321bb51.tar.gz vcpkg-8d8cea2be0e9e00bbbd92f49585615925321bb51.zip | |
Removes string replacement on Abseil headers
Abseil now has all uses of min and max wrapped in parens to prevent macro expansion. This will continue to be the case going forward, so these replacements are no longer needed.
Also, the Github web UI is forcing an extra change that updates the return character to the proper Windows CR+LF
| -rw-r--r-- | ports/abseil/portfile.cmake | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ports/abseil/portfile.cmake b/ports/abseil/portfile.cmake index 7aca199a0..6a15ddfb4 100644 --- a/ports/abseil/portfile.cmake +++ b/ports/abseil/portfile.cmake @@ -7,7 +7,7 @@ endif() vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO abseil/abseil-cpp
- REF 540e2537b92cd4abfae6ceddfe24304345461f32 + REF 540e2537b92cd4abfae6ceddfe24304345461f32
SHA512 3cabab23ad159592562a30531052bb18c66fce75f93f84a6de17a7488b7d6651f645950c1adb8dfbacc651f2bc0db82c316de132baab38e3ef95ea5b5a0eb6d2
HEAD_REF master
)
@@ -23,14 +23,6 @@ vcpkg_install_cmake() vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-abseil TARGET_PATH share/unofficial-abseil)
-file(GLOB_RECURSE HEADERS ${CURRENT_PACKAGES_DIR}/include/*)
-foreach(FILE ${HEADERS})
- file(READ "${FILE}" _contents)
- string(REPLACE "std::min(" "(std::min)(" _contents "${_contents}")
- string(REPLACE "std::max(" "(std::max)(" _contents "${_contents}")
- file(WRITE "${FILE}" "${_contents}")
-endforeach()
-
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/abseil RENAME copyright)
|
