浏览代码

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.
Adam Cozzette 9 年之前
父节点
当前提交
98d89d4277
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cmake/tests.cmake

+ 1 - 0
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})