2023-11-06 01:16:23 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO silverqx/TinyORM
|
2023-12-01 18:02:41 +08:00
|
|
|
REF "v${VERSION}"
|
2024-05-07 05:22:11 +08:00
|
|
|
SHA512 f82702d712f845624698f799c7f5d2b30b7d2138f6c4c15e7ca50b316254b55b6606f60ce4356d7156b615b636a6b16e2d1923901825759e54ab60499c4f04cd
|
2023-11-06 01:16:23 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
2024-05-07 05:22:11 +08:00
|
|
|
# STL4043 _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING already defined, see:
|
|
|
|
# https://github.com/silverqx/TinyORM/blob/main/cmake/CommonModules/TinyCommon.cmake#L122
|
|
|
|
|
2023-11-06 01:16:23 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
PREFIX TINYORM
|
|
|
|
FEATURES
|
|
|
|
disable-thread-local DISABLE_THREAD_LOCAL
|
|
|
|
inline-constants INLINE_CONSTANTS
|
|
|
|
mysql-ping MYSQL_PING
|
|
|
|
orm ORM
|
|
|
|
strict-mode STRICT_MODE
|
|
|
|
tom TOM
|
|
|
|
tom-example TOM_EXAMPLE
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2024-05-07 05:22:11 +08:00
|
|
|
-DCMAKE_CXX_SCAN_FOR_MODULES:BOOL=OFF
|
2023-11-06 01:16:23 +08:00
|
|
|
-DCMAKE_EXPORT_PACKAGE_REGISTRY:BOOL=OFF
|
|
|
|
-DBUILD_TESTS:BOOL=OFF
|
2024-05-07 05:22:11 +08:00
|
|
|
-DBUILD_TREE_DEPLOY:BOOL=OFF
|
2023-11-06 01:16:23 +08:00
|
|
|
-DTINY_PORT:STRING=${PORT}
|
|
|
|
-DTINY_VCPKG:BOOL=ON
|
|
|
|
-DVERBOSE_CONFIGURE:BOOL=ON
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
|
|
|
|
if(TINYORM_TOM_EXAMPLE)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES tom AUTO_CLEAN)
|
|
|
|
endif()
|
2023-12-01 18:02:41 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|