Skip to content

Commit

Permalink
use abseil's official cmake for build (#7018)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan authored and vicroms committed Jul 15, 2019
1 parent 8fb83ad commit ac00ef2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 97 deletions.
93 changes: 0 additions & 93 deletions ports/abseil/CMakeLists.txt

This file was deleted.

10 changes: 6 additions & 4 deletions ports/abseil/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ vcpkg_from_github(
PATCHES fix-usage-lnk-error.patch
)

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)

vcpkg_install_cmake()

vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-abseil TARGET_PATH share/unofficial-abseil)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/absl)

vcpkg_copy_pdbs()

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/abseil RENAME copyright)
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)

0 comments on commit ac00ef2

Please sign in to comment.