Skip to content

Commit 68fd35a

Browse files
committed
ci: enable rest and ud libs when building samples in cmake
1 parent 18c06b5 commit 68fd35a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

google/cloud/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ mark_as_advanced(GOOGLE_CLOUD_CPP_BUILD_METADATA)
5252

5353
include("${CMAKE_CURRENT_SOURCE_DIR}/google_cloud_cpp_common.cmake")
5454

55+
# We need the REST libraries for the full suite of samples.
56+
if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
57+
set(GOOGLE_CLOUD_CPP_ENABLE_REST ON)
58+
endif ()
59+
5560
add_subdirectory(testing_util)
5661

5762
if (GOOGLE_CLOUD_CPP_ENABLE_GRPC)
@@ -73,3 +78,10 @@ if (universe_domain IN_LIST GOOGLE_CLOUD_CPP_ENABLE)
7378
"${CMAKE_CURRENT_SOURCE_DIR}/google_cloud_cpp_universe_domain.cmake")
7479
add_subdirectory(universe_domain)
7580
endif ()
81+
82+
# We need the universe_domain library for the full suite of samples.
83+
if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
84+
include(
85+
"${CMAKE_CURRENT_SOURCE_DIR}/google_cloud_cpp_universe_domain.cmake")
86+
add_subdirectory(universe_domain)
87+
endif ()

0 commit comments

Comments
 (0)