2020-08-20 12:42:29 +08:00
|
|
|
# header-only library
|
2018-03-24 01:55:04 +08:00
|
|
|
|
2020-09-05 11:16:00 +08:00
|
|
|
set(FEATURE_PATCHES)
|
|
|
|
|
2018-03-24 01:55:04 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO fnc12/sqlite_orm
|
2021-01-11 16:06:54 +08:00
|
|
|
REF 4c6a46bd4dcfba14a650e0fafb86331526878587 # 1.6
|
|
|
|
SHA512 9626fc20374aff5da718d32c7b942a7a6434920da9cf68df6146e9c25cca61936c2e3091c6476c369c8bf241dcb8473169ee726eaedfeb92d79ff4fa8a6b2d32
|
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-01-11 16:06:54 +08:00
|
|
|
test BUILD_TESTING
|
2020-09-05 11:16:00 +08:00
|
|
|
example BUILD_EXAMPLES
|
2018-03-24 01:55:04 +08:00
|
|
|
)
|
|
|
|
|
2020-08-20 12:42:29 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-09-05 11:16:00 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2020-08-20 12:42:29 +08:00
|
|
|
-DSQLITE_ORM_ENABLE_CXX_17=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2021-01-11 16:06:54 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/SqliteOrm TARGET_PATH share/SqliteOrm)
|
2020-08-20 12:42:29 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
2018-03-24 01:55:04 +08:00
|
|
|
|
2020-08-20 12:42:29 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|