Skip to content

Commit

Permalink
fix for building tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meyertst-aws committed Aug 18, 2023
1 parent 27781a7 commit c526bf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/example_code/s3/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ if (NOT DEFINED GTEST_SOURCE_FILES)
)
endif()


# Handle special case of list_buckets_disabling_dns_cache.cpp on Windows.
if(WINDOWS_BUILD)
list(FIND AWSSDK_CLIENT_LIBS "curl" CONTAINS_CURL)
if (CONTAINS_CURL EQUAL -1)
# remove list_buckets_disabling_dns_cache.cpp libs not using curl
list(FILTER AWSDOC_S3_SOURCE EXCLUDE REGEX "/list_buckets_disabling_dns_cache.cpp$") # Not supported in windows without curl, see file for details
list(FILTER GTEST_SOURCE_FILES EXCLUDE REGEX "/gtest_list_buckets_disabling_dns_cache.cpp$") # Not supported in windows without curl, see file for details
else()
set(CURL_INCLUDE "c:/curl/include") # Update this with correct curl install location.
set(CURL_LIB "c:/curl/lib") # Update this with correct curl install location.
Expand Down

0 comments on commit c526bf4

Please sign in to comment.