vcpkg/ports/abseil/portfile.cmake
Robert Schumacher c95512aaf6 [many ports] Updates 2019.03.29 (#5698)
* Updates 2019.03.29

* Undo changes to 4 ports(rocksdb tbb thrift uwebsockets) due to failures

* [folly] Fix target files in debug mode

* Undo glog changes since it caused sophus openmvg and cartographer failures

* Undo Folly changes since it cause wangle failed

* Undo Folly portfile
2019-04-15 22:30:11 -07:00

30 lines
932 B
CMake

include(vcpkg_common_functions)
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "Abseil currently only supports being built for desktop")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO abseil/abseil-cpp
REF 2c8421e1c6cef0da9e8a20b01c15256ec9ec116d
SHA512 ae899d23e5b0bfbecb45c36a8d91972b06142d49e372595f1ce7433bc22d130f0f7d97933db65f1c46381369be5a1f55e11e50a354048962c8983eda398e881f
HEAD_REF master
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_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/abseil RENAME copyright)