commit | da8ed89908140a3b937e7da81875bbeeebebbf43 | [log] [tgz] |
---|---|---|
author | James Robinson <jamesr@google.com> | Thu Oct 06 14:55:27 2016 -0700 |
committer | James Robinson <jamesr@google.com> | Thu Oct 06 14:55:27 2016 -0700 |
tree | 6ffe126755642dcd8912ed40bfba2fec93f47711 | |
parent | 4fe933037d7b06061af05fa54be321f66cbe30c8 [diff] |
Annotate GN rule for gtest as testonly This helps prevent accidentally linking it into production targets. Change-Id: I730b2c65815a096918ffc2ff6aea0e781113d307
diff --git a/BUILD.gn b/BUILD.gn index bd17202..8653d56 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -32,6 +32,8 @@ } source_set("gtest") { + testonly = true + sources = [ "include/gtest/gtest-death-test.h", "include/gtest/gtest-message.h",