diff options
author | Adam Cozzette <acozzette@google.com> | 2016-12-19 13:26:21 -0800 |
---|---|---|
committer | Adam Cozzette <acozzette@google.com> | 2016-12-19 14:38:21 -0800 |
commit | 98d89d427708af776eba79850060dccca7882a5a (patch) | |
tree | 92c807fbc08d380af42b5e348d06364d04a6e287 /cmake | |
parent | 1b3a0c16e6ac133e59d818f7b4556caf3c11b165 (diff) | |
download | protobuf-98d89d427708af776eba79850060dccca7882a5a.tar.gz protobuf-98d89d427708af776eba79850060dccca7882a5a.tar.bz2 protobuf-98d89d427708af776eba79850060dccca7882a5a.zip |
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')
-rw-r--r-- | cmake/tests.cmake | 1 |
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}) |