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)