mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 20:06:09 +08:00
94b2e61817
* [tinyorm] Disable warnings as errors. * version
41 lines
1.1 KiB
CMake
41 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO silverqx/TinyORM
|
|
REF v0.36.5
|
|
SHA512 ba3bf73972a6265663122e2c260354cf213dcdcf7bfd1f7a6a7eb43eb11e06fbed581b3f6ce28898eb60a85d0c9bfe45bfaa9596d92b62ca40702ede9856b183
|
|
HEAD_REF main
|
|
)
|
|
|
|
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_EXPORT_PACKAGE_REGISTRY:BOOL=OFF
|
|
-DBUILD_TESTS:BOOL=OFF
|
|
-DTINY_PORT:STRING=${PORT}
|
|
-DTINY_VCPKG:BOOL=ON
|
|
-DVERBOSE_CONFIGURE:BOOL=ON
|
|
-DWARNINGS_AS_ERRORS=FALSE
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
if(TINYORM_TOM_EXAMPLE)
|
|
vcpkg_copy_tools(TOOL_NAMES tom AUTO_CLEAN)
|
|
endif()
|