From c1d4123a097f73523ddbd26513e4541c1e845fa0 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 2 Sep 2022 14:23:28 -0500 Subject: [PATCH] add ABSL_CONSUME_DLL to CXXFLAGS --- recipe/bld.bat | 1 + recipe/run_test_google_cloud_cpp.bat | 1 + 2 files changed, 2 insertions(+) diff --git a/recipe/bld.bat b/recipe/bld.bat index 1c9a85f..bc4900e 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -8,6 +8,7 @@ cd build set LIBRARY_PREFIX="%LIBRARY_PREFIX:\=/%" set BUILD_PREFIX="%BUILD_PREFIX:\=/%" set SRC_DIR="%SRC_DIR:\=/%" +set "CXXFLAGS=-DABSL_CONSUME_DLL %CXXFLAGS%" cmake -G "Ninja" ^ -DBUILD_TESTING=OFF ^ diff --git a/recipe/run_test_google_cloud_cpp.bat b/recipe/run_test_google_cloud_cpp.bat index 970eb9b..ffea112 100644 --- a/recipe/run_test_google_cloud_cpp.bat +++ b/recipe/run_test_google_cloud_cpp.bat @@ -3,6 +3,7 @@ setlocal EnableDelayedExpansion @REM CMake does not like paths with \ characters set LIBRARY_PREFIX="%LIBRARY_PREFIX:\=/%" +set "CXXFLAGS=-DABSL_CONSUME_DLL %CXXFLAGS%" cmake -GNinja ^ -S google/cloud/storage/quickstart -B .build/quickstart ^