From e3dcfe3fd6e9c861b1c2d38034f26994266276e1 Mon Sep 17 00:00:00 2001 From: Daan Timmer <8293597+daantimmer@users.noreply.github.com> Date: Thu, 23 Jan 2025 13:07:16 +0100 Subject: [PATCH] feat: only build StreamWriterFile for host builds (#807) --- 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)