Use ABSL_RUN_TESTS instead of BUILD_TESTING

This commit is contained in:
Loo Rong Jie 2018-08-22 20:47:11 +08:00
parent fcc476cce5
commit 027ebfdb8f

View file

@ -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)