aws-sdk-cpp: include dev output as header path hint

This commit is contained in:
Jonathan Ringer 2022-10-15 12:13:28 -07:00 committed by Artturin
parent a8ba422f71
commit f7557ec309

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 \