aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
984 stars 633 forks source link

Use ROOT_DIR variable instead of CMAKE_SOURCE_DIR #1918

Closed IdrisCodes closed 1 month ago

IdrisCodes commented 2 months ago

Issue #1916

Description of changes: Using CMAKE_SOURCE_DIR breaks everything when the SDK is not the top directory in the source tree. The SDK's top CMakeLists file defines the ROOT_DIR variable which can be used instead. This way the SDK can be integrated as a git submodule or using CMake's FetchContent.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.