Merge pull request #182918 from jonringer/fix-aws-sdk-cpp-find

This commit is contained in:
Artturi 2023-07-24 21:31:13 +03:00 committed by GitHub
commit 5867d146dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,14 @@ stdenv.mkDerivation rec {
];
postPatch = ''
# Append the dev output to path hints in finding Aws.h to avoid
# having to pass `AWS_CORE_HEADER_FILE` explicitly to cmake configure
# when using find_package(AWSSDK CONFIG)
substituteInPlace cmake/AWSSDKConfig.cmake \
--replace 'C:/AWSSDK/''${AWSSDK_INSTALL_INCLUDEDIR}/aws/core' \
'C:/AWSSDK/''${AWSSDK_INSTALL_INCLUDEDIR}/aws/core"
"${placeholder "dev"}/include/aws/core'
# Avoid blanket -Werror to evade build failures on less
# tested compilers.
substituteInPlace cmake/compiler_settings.cmake \