Commit d2e5ae5a by Loo Rong Jie

[CMake] Only include test targets if ABSL_RUN_TESTS=ON

parent c075ad32
...@@ -135,7 +135,7 @@ function(absl_test) ...@@ -135,7 +135,7 @@ function(absl_test)
) )
if(BUILD_TESTING) if(ABSL_RUN_TESTS)
set(_NAME ${ABSL_TEST_TARGET}) set(_NAME ${ABSL_TEST_TARGET})
string(TOUPPER ${_NAME} _UPPER_NAME) string(TOUPPER ${_NAME} _UPPER_NAME)
...@@ -153,7 +153,7 @@ function(absl_test) ...@@ -153,7 +153,7 @@ function(absl_test)
set_property(TARGET ${_NAME}_bin PROPERTY FOLDER ${ABSL_IDE_FOLDER}) set_property(TARGET ${_NAME}_bin PROPERTY FOLDER ${ABSL_IDE_FOLDER})
add_test(${_NAME} ${_NAME}_bin) add_test(${_NAME} ${_NAME}_bin)
endif(BUILD_TESTING) endif(ABSL_RUN_TESTS)
endfunction() endfunction()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment