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")