diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2022-10-15 12:13:28 -0700 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-07-23 03:32:49 +0300 |
commit | f7557ec309ef53a1ce615e411a4bf71864edcb86 (patch) | |
tree | f62b6c303672d7e151086658d9b0bd6bd5dd5a88 /pkgs/development/libraries/aws-sdk-cpp | |
parent | a8ba422f71f83858209f2312e942e71f5c8f7cd3 (diff) |
aws-sdk-cpp: include dev output as header path hint
Diffstat (limited to 'pkgs/development/libraries/aws-sdk-cpp')
-rw-r--r-- | pkgs/development/libraries/aws-sdk-cpp/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix index 68ea441228365..3c18429aa7edc 100644 --- a/pkgs/development/libraries/aws-sdk-cpp/default.nix +++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix @@ -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 \ |