aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/tests.cmake
diff options
context:
space:
mode:
authorGravatar Adam Cozzette <acozzette@google.com>2016-12-19 13:26:21 -0800
committerGravatar Adam Cozzette <acozzette@google.com>2016-12-19 14:38:21 -0800
commit98d89d427708af776eba79850060dccca7882a5a (patch)
tree92c807fbc08d380af42b5e348d06364d04a6e287 /cmake/tests.cmake
parent1b3a0c16e6ac133e59d818f7b4556caf3c11b165 (diff)
Fixed "make check" for cmake build
The check target did not depend on the test_plugin binary, so this would cause "make check" to fail at times because of the absence of test_plugin. This change adds a dependency on test_plugin so that it will always get built before the tests are executed.
Diffstat (limited to 'cmake/tests.cmake')
-rw-r--r--cmake/tests.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/tests.cmake b/cmake/tests.cmake
index 30214e7d..bf8e5a6c 100644
--- a/cmake/tests.cmake
+++ b/cmake/tests.cmake
@@ -214,4 +214,5 @@ target_link_libraries(lite-arena-test libprotobuf-lite gmock_main)
add_custom_target(check
COMMAND tests
+ DEPENDS tests test_plugin
WORKING_DIRECTORY ${protobuf_source_dir})