diff options
author | Benjamin Barenblat <bbaren@google.com> | 2020-02-26 16:15:47 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2020-02-26 16:17:21 -0500 |
commit | 454202fc0b6d6baa15aec328053c28e0d46d0551 (patch) | |
tree | f0972abd7b320ac2e44f6a6456621583ad3d7108 /CMake/Googletest/DownloadGTest.cmake | |
parent | 0033c9ea91a52ade7c6b725aa2ef3cbe15463421 (diff) |
Use absl_gtest_{src,build}_dir variables more aggressively
Replace extra expansions of `${CMAKE_BINARY_DIR}/googletest-src` and
`${CMAKE_BINARY_DIR}/googletest-build` with `${absl_gtest_src_dir}` and
`${absl_gtest_build_dir}`, respectively.
Diffstat (limited to 'CMake/Googletest/DownloadGTest.cmake')
-rw-r--r-- | CMake/Googletest/DownloadGTest.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CMake/Googletest/DownloadGTest.cmake b/CMake/Googletest/DownloadGTest.cmake index 8a00b45..d616fe2 100644 --- a/CMake/Googletest/DownloadGTest.cmake +++ b/CMake/Googletest/DownloadGTest.cmake @@ -37,6 +37,4 @@ 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) +add_subdirectory(${absl_gtest_src_dir} ${absl_gtest_build_dir} EXCLUDE_FROM_ALL) |