UseEcos: Update tclsh check

The FindTclsh module already outputs the result message thus the
redundant can be removed.

The Tclsh_FOUND variable used instead of TCL_TCLSH for the check.
This commit is contained in:
Peter Kokot
2025-04-06 22:48:58 +02:00
parent 8d034572fd
commit 8b015d2633

View File

@@ -139,10 +139,8 @@ endif ()
# Check that tclsh (coming with TCL) is available, otherwise ecosconfig doesn't
# work.
find_package(Tclsh)
if (NOT TCL_TCLSH)
if (NOT Tclsh_FOUND)
message(SEND_ERROR "The TCL tclsh was not found. Please install TCL, it is required for building eCos applications.")
else ()
message(STATUS "tlcsh found: ${TCL_TCLSH}")
endif ()
macro(ECOS_ADD_INCLUDE_DIRECTORIES)