mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 21:53:10 +00:00
22 lines
492 B
CMake
22 lines
492 B
CMake
|
|
# FindTee
|
|
# --------
|
|
#
|
|
# Find tee
|
|
#
|
|
# This module looks for tee. This module defines the following values:
|
|
#
|
|
# ::
|
|
#
|
|
# TEE_EXECUTABLE: the full path to the tee tool.
|
|
# TEE_FOUND: True if tee has been found.
|
|
|
|
find_program(TEE_EXECUTABLE tee)
|
|
mark_as_advanced( TEE_EXECUTABLE )
|
|
|
|
include (FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Tee FOUND_VAR REQUIRED_VARS TEE_EXECUTABLE)
|
|
if(Tee_FIND_REQUIRED AND NOT TEE_FOUND)
|
|
message(FATAL_ERROR "Could not find tee")
|
|
endif()
|