diff options
author | ambrosin <ambrosin@google.com> | 2023-04-26 01:38:59 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-04-26 01:40:11 -0700 |
commit | 49fcc81b27062bcc0cc753b194cb93f05462de8c (patch) | |
tree | e79b2b338ff6a1deae65ceb45bb208309d667297 /cc/util | |
parent | 380c0f1cf04a2edf5b57c305d4074f59f7bb0876 (diff) | |
download | tink-49fcc81b27062bcc0cc753b194cb93f05462de8c.tar.gz |
Add TESTONLY attribute to CMake tink_cc_library targets
This option excludes the target from being defined when TINK_BUILD_TESTS=OFF.
PiperOrigin-RevId: 527197212
Diffstat (limited to 'cc/util')
-rw-r--r-- | cc/util/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/util/CMakeLists.txt b/cc/util/CMakeLists.txt index bed5f9f1e..c2e5ef509 100644 --- a/cc/util/CMakeLists.txt +++ b/cc/util/CMakeLists.txt @@ -205,6 +205,7 @@ tink_cc_library( tink::proto::hmac_cc_proto tink::proto::tink_cc_proto tink::proto::xchacha20_poly1305_cc_proto + TESTONLY ) tink_cc_library( @@ -216,6 +217,7 @@ tink_cc_library( tink::util::statusor gmock absl::status + TESTONLY ) tink_cc_library( @@ -235,6 +237,7 @@ tink_cc_library( absl::memory tink::core::keyset_handle tink::proto::tink_cc_proto + TESTONLY ) tink_cc_library( @@ -502,6 +505,7 @@ tink_cc_library( tink::core::kms_client tink::core::kms_clients tink::aead::aead_key_templates + TESTONLY ) tink_cc_test( |