From 63c5a101af03d0458fdcc9832b4595ad39390e5c Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 19 Nov 2025 21:00:56 -0800 Subject: [PATCH] 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. (cherry picked from commit e0308dc14730052032f2b172c6d8b7abe398c755) --- src/tee/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tee/CMakeLists.txt b/src/tee/CMakeLists.txt index 1395c513ae..b8a32fe982 100644 --- 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()