summaryrefslogtreecommitdiff
path: root/CMake/AbseilHelpers.cmake
diff options
context:
space:
mode:
authorGravatar Loo Rong Jie <loorongjie@gmail.com>2018-09-05 08:25:36 +0800
committerGravatar Loo Rong Jie <loorongjie@gmail.com>2018-09-05 08:25:36 +0800
commitd2e5ae5a1ac53cab5bdb988529c73e0b57ac9c70 (patch)
tree797d61e67d0681b18e1e033b322ca2dd38fb9cbb /CMake/AbseilHelpers.cmake
parentc075ad321696fa5072e097f0a51e4fe76a6fe13e (diff)
[CMake] Only include test targets if ABSL_RUN_TESTS=ON
Diffstat (limited to 'CMake/AbseilHelpers.cmake')
-rw-r--r--CMake/AbseilHelpers.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake
index e4eafe49..f6a3479c 100644
--- a/CMake/AbseilHelpers.cmake
+++ b/CMake/AbseilHelpers.cmake
@@ -135,7 +135,7 @@ function(absl_test)
)
- if(BUILD_TESTING)
+ if(ABSL_RUN_TESTS)
set(_NAME ${ABSL_TEST_TARGET})
string(TOUPPER ${_NAME} _UPPER_NAME)
@@ -153,7 +153,7 @@ function(absl_test)
set_property(TARGET ${_NAME}_bin PROPERTY FOLDER ${ABSL_IDE_FOLDER})
add_test(${_NAME} ${_NAME}_bin)
- endif(BUILD_TESTING)
+ endif(ABSL_RUN_TESTS)
endfunction()