mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 04:49:01 +08:00
28b1cf627c
Bugfix release. New TinyDrivers feature can't be enabled in vcpkg as it violates the Maintainer guide: Do not use features to implement alternatives - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [x] The "supports" clause reflects platforms that may be fixed by this new version. - [x] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [x] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
47 lines
1.3 KiB
CMake
47 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO silverqx/TinyORM
|
|
REF "v${VERSION}"
|
|
SHA512 f82702d712f845624698f799c7f5d2b30b7d2138f6c4c15e7ca50b316254b55b6606f60ce4356d7156b615b636a6b16e2d1923901825759e54ab60499c4f04cd
|
|
HEAD_REF main
|
|
)
|
|
|
|
# STL4043 _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING already defined, see:
|
|
# https://github.com/silverqx/TinyORM/blob/main/cmake/CommonModules/TinyCommon.cmake#L122
|
|
|
|
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
|
|
-DCMAKE_CXX_SCAN_FOR_MODULES:BOOL=OFF
|
|
-DCMAKE_EXPORT_PACKAGE_REGISTRY:BOOL=OFF
|
|
-DBUILD_TESTS:BOOL=OFF
|
|
-DBUILD_TREE_DEPLOY:BOOL=OFF
|
|
-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()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|