Use WITH_AWS_BACKUP instead of BUILD_AWS_BACKUP

For determinining whether or not the aws sdk is available.
BUILD_AWS_BACKUP seems to serve as a request to make the aws sdk
available, and WITH_AWS_BACKUP is whether or not that request was
successful.
This commit is contained in:
Andrew Noyes 2022-10-07 10:52:46 -07:00
parent 64e2404446
commit 3c9848f89a
3 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ endif()
if(WITH_AWS_BACKUP)
add_compile_definitions(BUILD_AWS_BACKUP)
add_compile_definitions(WITH_AWS_BACKUP)
include(awssdk)
endif()

View File

@ -22,7 +22,7 @@
#include "fdbclient/FDBAWSCredentialsProvider.h"
#include "fdbclient/Tracing.h"
#ifdef BUILD_AWS_BACKUP
#ifdef WITH_AWS_BACKUP
// You're supposed to call AWS::ShutdownAPI(options); once done
// But we want this to live for the lifetime of the process, so we don't do that

View File

@ -18,11 +18,11 @@
* limitations under the License.
*/
#if (!defined FDB_AWS_CREDENTIALS_PROVIDER_H) && (defined BUILD_AWS_BACKUP)
#if (!defined FDB_AWS_CREDENTIALS_PROVIDER_H) && (defined WITH_AWS_BACKUP)
#define FDB_AWS_CREDENTIALS_PROVIDER_H
#pragma once
#ifdef BUILD_AWS_BACKUP
#ifdef WITH_AWS_BACKUP
#include "aws/core/Aws.h"
#include "aws/core/auth/AWSCredentialsProviderChain.h"