主要参考 https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/aws-sdk-cpp-dg.pdf#welcome 就好了
通过国内镜像克隆
git clone https://github.com.cnpmjs.org/aws/aws-sdk-cpp.git
压缩备份
tar zcvf aws-sdk-cpp.git.tar.gz aws-sdk-cpp/
修改源文件中 github到国内镜像站点
cd aws-sdk-cpp/
sed -i "s/https\:\/\/github\.com\//https\:\/\/github\.com\.cnpmjs\.org\//g" aws-cpp-sdk-application-autoscaling/include/aws/application-autoscaling/model/*
sed -i "s/https\:\/\/github\.com\//https\:\/\/github\.com\.cnpmjs\.org\//g" aws-cpp-sdk-ecs/include/aws/ecs/model/*
sed -i "s/https\:\/\/github\.com\//https\:\/\/github\.com\.cnpmjs\.org\//g" third-party/*.txt
创建编译目录并进该目录编译,保持源文件的纯洁
mkdir ..\sdk_build
cd ..\sdk_build
cmake ../aws-sdk-cpp -DCMAKE_BUILD_TYPE=debug