vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO sogou/srpc REF v${VERSION} SHA512 12816755ba94d1d006d5bbbbba14b0589258f6a79b3fef16b722e7a9f5375a6f69a513f203b27eef305358ec28d07a0553a40b1aaebf467326f14e4b6bfc4a01 HEAD_REF master PATCHES protobuf.patch ) string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" SRPC_BUILD_STATIC_RUNTIME) vcpkg_cmake_configure( SOURCE_PATH ${SOURCE_PATH} DISABLE_PARALLEL_CONFIGURE OPTIONS -DSRPC_BUILD_STATIC_RUNTIME=${SRPC_BUILD_STATIC_RUNTIME} -DCMAKE_CXX_STANDARD=11 MAYBE_UNUSED_VARIABLES SRPC_BUILD_STATIC_RUNTIME ) vcpkg_cmake_install() vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/srpc) vcpkg_copy_pdbs() vcpkg_copy_tools( TOOL_NAMES srpc_generator AUTO_CLEAN ) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")