addressed comments

pull/18397/head
Bill Feng 6 years ago
parent 3a8e9bd465
commit ddae4333fa
  1. 3
      cmake/benchmark.cmake
  2. 2
      templates/CMakeLists.txt.template

@ -12,9 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "Turn off gTest in gBenchmark")
if("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "module")
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "Turn off gTest in gBenchmark")
if(NOT BENCHMARK_ROOT_DIR)
set(BENCHMARK_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark)
endif()

@ -53,7 +53,7 @@
deps.append("${_gRPC_BENCHMARK_LIBRARIES}")
else:
deps.append(d)
if target_dict.build == 'test' or target_dict.build == 'private' and target_dict.language == 'c++':
if (target_dict.build == 'test' or target_dict.build == 'private') and target_dict.language == 'c++':
deps.append("${_gRPC_GFLAGS_LIBRARIES}")
return deps

Loading…
Cancel
Save