From d2e5ae5a1ac53cab5bdb988529c73e0b57ac9c70 Mon Sep 17 00:00:00 2001 From: Loo Rong Jie Date: Wed, 5 Sep 2018 08:25:36 +0800 Subject: [CMake] Only include test targets if ABSL_RUN_TESTS=ON --- CMake/AbseilHelpers.cmake | 4 ++-- 1 file 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() -- cgit v1.2.3 From 411b3c56d91689c21d68e6e4c1d66e9a3a8e495e Mon Sep 17 00:00:00 2001 From: Gennadiy Civil Date: Tue, 11 Sep 2018 13:53:48 -0400 Subject: Update AbseilHelpers.cmake Comment change --- CMake/AbseilHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake index f6a3479c..0c934174 100644 --- a/CMake/AbseilHelpers.cmake +++ b/CMake/AbseilHelpers.cmake @@ -123,7 +123,7 @@ endfunction() # # all tests will be register for execution with add_test() # -# test compilation and execution is disable when BUILD_TESTING=OFF +# test compilation and execution is disable when ABSL_RUN_TESTS=OFF # function(absl_test) -- cgit v1.2.3