Skip to content

Commit ac00ef2

Browse files
cloudhanvicroms
authored andcommitted
use abseil's official cmake for build (#7018)
1 parent 8fb83ad commit ac00ef2

File tree

2 files changed

+6
-97
lines changed

2 files changed

+6
-97
lines changed

ports/abseil/CMakeLists.txt

Lines changed: 0 additions & 93 deletions
This file was deleted.

ports/abseil/portfile.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ vcpkg_from_github(
1515
PATCHES fix-usage-lnk-error.patch
1616
)
1717

18-
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
19-
2018
vcpkg_configure_cmake(
2119
SOURCE_PATH ${SOURCE_PATH}
2220
PREFER_NINJA
2321
)
2422

2523
vcpkg_install_cmake()
26-
27-
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-abseil TARGET_PATH share/unofficial-abseil)
24+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/absl)
2825

2926
vcpkg_copy_pdbs()
3027

3128
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/abseil RENAME copyright)
29+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share
30+
${CURRENT_PACKAGES_DIR}/debug/include
31+
${CURRENT_PACKAGES_DIR}/include/absl/copts
32+
${CURRENT_PACKAGES_DIR}/include/absl/strings/testdata
33+
${CURRENT_PACKAGES_DIR}/include/absl/time/internal/cctz/testdata)

0 commit comments

Comments
 (0)