about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoo Rong Jie <loorongjie@gmail.com>2018-08-22T12·47+0800
committerLoo Rong Jie <loorongjie@gmail.com>2018-10-09T15·33+0800
commit027ebfdb8fe9dc3fd85d34fbc5af0b2b7ac298f4 (patch)
tree1328c85e9dcf8ff6bc178c9b14cd848cd9932945
parentfcc476cce5e88ae1f39ee7b1a46b46ca9c5de001 (diff)
Use ABSL_RUN_TESTS instead of BUILD_TESTING
-rw-r--r--CMake/AbseilHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake
index e9fc2a3a00e1..0b7b0b8d5986 100644
--- a/CMake/AbseilHelpers.cmake
+++ b/CMake/AbseilHelpers.cmake
@@ -121,7 +121,7 @@ function(absl_cc_library)
     ${ARGN}
   )
 
-  if (NOT ABSL_CC_LIB_TESTONLY OR BUILD_TESTING)
+  if (NOT ABSL_CC_LIB_TESTONLY OR ABSL_RUN_TESTS)
     set(_NAME "absl_${ABSL_CC_LIB_NAME}")
     string(TOUPPER ${_NAME} _UPPER_NAME)