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:
parent
64e2404446
commit
3c9848f89a
|
@ -64,7 +64,7 @@ endif()
|
|||
|
||||
|
||||
if(WITH_AWS_BACKUP)
|
||||
add_compile_definitions(BUILD_AWS_BACKUP)
|
||||
add_compile_definitions(WITH_AWS_BACKUP)
|
||||
include(awssdk)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue