From 454202fc0b6d6baa15aec328053c28e0d46d0551 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 26 Feb 2020 16:15:47 -0500 Subject: 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. --- CMake/Googletest/DownloadGTest.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'CMake/Googletest/DownloadGTest.cmake') 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) -- cgit v1.2.3