commit e0308dc14730052032f2b172c6d8b7abe398c755
parent caa9419355456e85f27006291abc6643d83f01a7
Author: Justin M. Keyes <justinkz@gmail.com>
Date: Wed, 19 Nov 2025 21:00:56 -0800
fix(install): only install "tee" on Windows #36629
Problem:
AUR does not want a web-scale implementation of "tee".
Solution:
- Only install "tee" on Windows.
- The build will still produce `./build/bin/tee` on all platforms, to
have more coverage and avoid special-cases in tests.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/tee/CMakeLists.txt b/src/tee/CMakeLists.txt
@@ -5,6 +5,8 @@ set_target_properties(tee PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
-install(TARGETS tee
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
-)
+if(WIN32)
+ install(TARGETS tee
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
+ )
+endif()