Home Explore Blog CI



nixpkgs

doc/hooks/aws-c-common.section.md
765a91983e4eecaefb7905be8424d12e1d14561ce7d84ddd0000000300000176
# `aws-c-common` {#aws-c-common}

This hook exposes its own [CMake](#cmake) modules by setting [`CMAKE_MODULE_PATH`](https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html) through [the `cmakeFlags` variable](#cmake-flags)
to the nonstandard `$out/lib/cmake` directory, as a workaround for [an upstream bug](https://github.com/awslabs/aws-c-common/issues/844).

Chunks
23fc57c9 (1st chunk of `doc/hooks/aws-c-common.section.md`)
Title: aws-c-common CMake Module and Workaround for Upstream Bug
Summary
The `aws-c-common` hook exposes its own CMake modules by setting the `CMAKE_MODULE_PATH` variable through the `cmakeFlags` variable. This path is set to the nonstandard `$out/lib/cmake` directory. This is implemented as a workaround for an upstream bug that exists within the `aws-c-common` project, specifically issue number 844 on their GitHub repository. The use of a nonstandard directory and the workaround itself are necessary due to the limitations or issues present in the upstream project's CMake configuration, ensuring that the modules are correctly found and utilized during the build process despite the existing bug. This approach allows users to continue working with `aws-c-common` without being blocked by the upstream issue, while also providing a temporary solution until the bug is officially resolved in the upstream repository.