When build aws-sdk-cpp, got “Unknown CMake command “aws_use_package”

Confirm by changing [ ] to [x] below to ensure that it’s a bug:

I’ve gone though Developer Guide and API reference

I've searched for previous similar issues and didn't find any solution

The same problem as #1770, but I have Linux, and now Windows.

That’s how I build it:

cmake ../ 
    -DCMAKE_INSTALL_PREFIX=$PREFIX 
    -DCMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES=$PREFIX/include 
    -DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES=$PREFIX/include 
    -DCMAKE_BUILD_TYPE=Release 
    -DCUSTOM_MEMORY_MANAGEMENT=OFF 
    -DBUILD_ONLY="s3"

I use this: github.com/aws/aws-sdk-cpp/archive/1.9.144.tar.gz as the source code.

I’ve read the comment about the submodule, but I wuld like to build it from the source code archive

Read more here: Source link