mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 20:39:07 +08:00
0a251caefd
* [gsl-lite] Update to 0.38.0 * [gsl-lite] Update version registry * Re-run "vcpkg x-add-version"
29 lines
1.0 KiB
CMake
29 lines
1.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO gsl-lite/gsl-lite
|
|
REF f829848572e68102f9012b75ebc5d79a653f9d8c
|
|
SHA512 db9b72ef04c928f0b23be0c9603dca8ce317762a44247b1fc8538d2c9701ced43f8fefad4516298040860598d0f3ea26990de6f52e2835a479c68ab561f3b1d3
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/gsl-lite")
|
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/include/gsl-lite.hpp "#ifndef GSL_LITE_HPP_VCPKG_COMPAT_HEADER_INCLUDED
|
|
#define GSL_LITE_HPP_VCPKG_COMPAT_HEADER_INCLUDED
|
|
#pragma message(\"The header <gsl-lite.hpp> is deprecated and provided by Vcpkg for compatibility only; please include <gsl/gsl-lite.hpp> instead.\")
|
|
#include <gsl/gsl-lite.hpp>
|
|
#endif // GSL_LITE_HPP_VCPKG_COMPAT_HEADER_INCLUDED")
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|