You can add the AWS SDK as an external project and use the same `CMake parameters` from a CMake file instead.
where, <tag>
could be origin/master
or one of the versions
.
Note that the required minimmum CMake version is 3.x
.
If the GIT_TAG
points to a version >= 1.7.0
, third party dependencies aws-c-common
, aws-checksums
and aws-c-event-stream
are built by default and installed in default system directory. To customize how they are handled you can also install them separately
, if you do so, make sure to include -DBUILD_DEPS=OFF
in CMAKE_ARGS
.
The SDK's CMake file expects a semilcolon separated list of components for BUILD_ONLY
CMake argument, however, since ExternalProject_Add
processes list arguments differently, you'll need to use LIST_SEPARATOR
to indicate how the elements of the list are split, or which character will replace the semicolon. (For more information, refer to this issue
)