提交 d96c35ee 编写于 作者: Q QI JUN 提交者: GitHub

Merge pull request #2266 from reyoung/feature/fix_compile_error_without_tests

Fix compile when not enable testing
...@@ -2,8 +2,10 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) ...@@ -2,8 +2,10 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
go_library(adder SRCS adder.go) go_library(adder SRCS adder.go)
cc_test(cgo_test if (WITH_TESTING)
cc_test(cgo_test
SRCS SRCS
cgo_test.cc cgo_test.cc
DEPS DEPS
adder) adder)
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册