Change log:c92ed25217..bcf2616e8eFull diff:c92ed25217..bcf2616e8eRoll chromium third_party 51c08cf9af..9d65a3cdda Change log:51c08cf9af..9d65a3cddaChanged dependencies: * src/base:a7a2409f9b..b802985ef4* src/build:03f39fd800..fc8308f6b6* src/buildtools:a9e946f166..94288c26d2* src/ios:e070a93062..289c450460* src/testing:f5b31b58c6..a5fce03148* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/d8600ccc2d..ce9b3742a1 * src/third_party/depot_tools:8de3800ce5..8fe4d8cbef* src/third_party/googletest/src:045e7f9ee4..08d5b1f33a* src/tools:e024720629..6e6e398687* src/tools/swarming_client:88229872dd..833f5ebf89DEPS diff:c92ed25217..bcf2616e8e/DEPS No update to Clang. TBR=buildbot@webrtc.org, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal Change-Id: I22bf301fcec0103a1987a92f95ebf86e324dade7 Reviewed-on: https://webrtc-review.googlesource.com/77625 Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23296}
33 lines
1.2 KiB
CMake
33 lines
1.2 KiB
CMake
# Downloads and unpacks googletest at configure time. Based on the instructions
|
|
# at https://github.com/google/googletest/tree/master/googletest#incorporating-into-an-existing-cmake-project
|
|
|
|
# Download the latest googletest from Github master
|
|
configure_file(
|
|
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt.in
|
|
googletest-download/CMakeLists.txt
|
|
)
|
|
|
|
# Configure and build the downloaded googletest source
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
|
|
RESULT_VARIABLE result
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download )
|
|
if(result)
|
|
message(FATAL_ERROR "CMake step for googletest failed: ${result}")
|
|
endif()
|
|
|
|
execute_process(COMMAND ${CMAKE_COMMAND} --build .
|
|
RESULT_VARIABLE result
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download)
|
|
if(result)
|
|
message(FATAL_ERROR "Build step for googletest failed: ${result}")
|
|
endif()
|
|
|
|
# Prevent overriding the parent project's compiler/linker settings on Windows
|
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
|
|
# Add googletest directly to our build. This defines the gtest and gtest_main
|
|
# targets.
|
|
add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
|
|
${CMAKE_BINARY_DIR}/googletest-build
|
|
EXCLUDE_FROM_ALL)
|