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 e0308dc147)
This commit is contained in:
Justin M. Keyes
2025-11-19 21:00:56 -08:00
committed by github-actions[bot]
parent a94647bb08
commit 63c5a101af

View File

@@ -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()