diff options
author | Artturi <Artturin@artturin.com> | 2023-07-24 21:31:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 21:31:13 +0300 |
commit | 5867d146dc9d43a430141139ee1e64d57b7d9e10 (patch) | |
tree | c3135d42a002c9e4ac7422311ad5818a844f7ce0 /pkgs/development/libraries/aws-sdk-cpp | |
parent | 48c72f00ba1bbf1da5bf6e16528b939e7fb28a82 (diff) | |
parent | f7557ec309ef53a1ce615e411a4bf71864edcb86 (diff) |
Merge pull request #182918 from jonringer/fix-aws-sdk-cpp-find
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 24b1dc681f04e..8fdb63f165e84 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 \ |