From b3a9b1121507e30ca8e979cf1baaa206844b11bd Mon Sep 17 00:00:00 2001 From: "Timmer, Daan" Date: Tue, 14 Jan 2025 14:27:31 +0000 Subject: [PATCH] feat: only build StreamWriterFile for host builds --- infra/stream/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/infra/stream/CMakeLists.txt b/infra/stream/CMakeLists.txt index de438573c..28b34d456 100644 --- a/infra/stream/CMakeLists.txt +++ b/infra/stream/CMakeLists.txt @@ -57,8 +57,6 @@ target_sources(infra.stream PRIVATE StreamErrorPolicy.hpp StreamManipulators.cpp StreamManipulators.hpp - StreamWriterFile.cpp - StreamWriterFile.hpp StreamWriterPrintF.cpp StreamWriterPrintF.hpp StringInputStream.cpp @@ -67,4 +65,11 @@ target_sources(infra.stream PRIVATE StringOutputStream.hpp ) +if (EMIL_HOST_BUILD) + target_sources(infra.stream PRIVATE + StreamWriterFile.cpp + StreamWriterFile.hpp + ) +endif() + add_subdirectory(test)