mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:39:00 +08:00
b4f29c5445
* [sqlite-orm] Update to 1.8.0
* [sqlite-orm] Added "license" field to manifest
* [sqlite-orm] Update to 1.8.1
* [sqlite-orm] Corrected deprecated license
* [sqlite-orm] Removed unmerged 1.8.0 version from versions file
* [sqlite-orm] Revert: Removed unmerged 1.8.0 version from versions file
This reverts commit ebd658f0bf
.
* [sqlite-orm] Ran `.\vcpkg x-add-version sqlite-orm` again
* [sqlite-orm] Removed unmerged 1.8.0 version from versions file
35 lines
983 B
CMake
35 lines
983 B
CMake
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO fnc12/sqlite_orm
|
|
REF v1.8.1
|
|
SHA512 ada0571a5fb5f8eaec24b5046b9b7eb4de4656ebf5b9e413be8e7348d2169b34111a423c8af3128baaed48dbc945bbce0b1794527f737818b1c9153a13bbcb9a
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-features-build-error.patch
|
|
fix-dependency.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
test BUILD_TESTING
|
|
example BUILD_EXAMPLES
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DSQLITE_ORM_ENABLE_CXX_17=OFF
|
|
-DSQLITE_ORM_ENABLE_CXX_20=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME SqliteOrm CONFIG_PATH lib/cmake/SqliteOrm)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |