diff options
author | ambrosin <ambrosin@google.com> | 2023-02-08 01:11:57 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-08 01:12:54 -0800 |
commit | 5dc5dd7e624f9742bbd06e3214357d793e324dc9 (patch) | |
tree | 0095d6fc2b195238149de21a150fd9744564f40c /cc/util | |
parent | 7948b63128d47ed2ccd613e35f4917630bd108b6 (diff) | |
download | tink-5dc5dd7e624f9742bbd06e3214357d793e324dc9.tar.gz |
Use a tag to exclude targets on Windows when building with CMake
PiperOrigin-RevId: 508006914
Diffstat (limited to 'cc/util')
-rw-r--r-- | cc/util/CMakeLists.txt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cc/util/CMakeLists.txt b/cc/util/CMakeLists.txt index 4f48b3100..e9c6dd5b8 100644 --- a/cc/util/CMakeLists.txt +++ b/cc/util/CMakeLists.txt @@ -80,10 +80,6 @@ tink_cc_library( tink::proto::tink_cc_proto ) -# Exclude file_*_stream targets when building on Windows. These targets use -# the `unistd.h` header which is not available with MSVC. -if (NOT WIN32) - tink_cc_library( NAME file_input_stream SRCS @@ -95,6 +91,8 @@ tink_cc_library( tink::util::statusor absl::status tink::core::input_stream + TAGS + exclude_if_windows ) tink_cc_library( @@ -109,6 +107,8 @@ tink_cc_library( absl::memory absl::status tink::core::output_stream + TAGS + exclude_if_windows ) tink_cc_library( @@ -124,10 +124,10 @@ tink_cc_library( absl::memory absl::status tink::core::random_access_stream + TAGS + exclude_if_windows ) -endif() - tink_cc_library( NAME istream_input_stream SRCS @@ -302,10 +302,6 @@ tink_cc_test( tink::proto::common_cc_proto ) -# Exclude file_*_stream_test targets when building on Windows. These targets use -# the `unistd.h` header which is not available with MSVC. -if (NOT WIN32) - tink_cc_test( NAME file_input_stream_test SRCS @@ -321,6 +317,8 @@ tink_cc_test( absl::strings tink::internal::test_file_util tink::subtle::random + TAGS + exclude_if_windows ) tink_cc_test( @@ -336,6 +334,8 @@ tink_cc_test( absl::strings tink::internal::test_file_util tink::subtle::random + TAGS + exclude_if_windows ) tink_cc_test( @@ -353,10 +353,10 @@ tink_cc_test( absl::strings tink::internal::test_file_util tink::subtle::random + TAGS + exclude_if_windows ) -endif() - tink_cc_test( NAME istream_input_stream_test SRCS |