2020-08-20 12:42:29 +08:00
|
|
|
# header-only library
|
2018-03-24 01:55:04 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO fnc12/sqlite_orm
|
2021-12-31 02:28:48 +08:00
|
|
|
REF v1.7.1
|
|
|
|
SHA512 ab934959245e8e0aaefd543ef0c1ab336547e4c311aff9dda916c7577c006622dec917313350d0d8bde4366d42b458c915fc2ea2fb927c01910fe429e55c8bbc
|
2018-03-24 01:55:04 +08:00
|
|
|
HEAD_REF master
|
2020-08-20 12:42:29 +08:00
|
|
|
PATCHES
|
2021-01-11 16:06:54 +08:00
|
|
|
fix-features-build-error.patch
|
|
|
|
fix-dependency.patch
|
2020-09-05 11:16:00 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-11-24 04:21:28 +08:00
|
|
|
FEATURES
|
|
|
|
test BUILD_TESTING
|
|
|
|
example BUILD_EXAMPLES
|
2018-03-24 01:55:04 +08:00
|
|
|
)
|
|
|
|
|
2021-11-24 04:21:28 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2020-08-20 12:42:29 +08:00
|
|
|
-DSQLITE_ORM_ENABLE_CXX_17=OFF
|
|
|
|
)
|
|
|
|
|
2021-11-24 04:21:28 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-08-20 12:42:29 +08:00
|
|
|
|
2021-11-24 04:21:28 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME SqliteOrm CONFIG_PATH lib/cmake/SqliteOrm)
|
2020-08-20 12:42:29 +08:00
|
|
|
|
2021-11-24 04:21:28 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2018-03-24 01:55:04 +08:00
|
|
|
|
2021-11-24 04:21:28 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|