From 212f87d62ebe98ddace43810fb3f9f4991c831bf Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed, 15 Oct 2025 12:17:42 +0200 Subject: [PATCH] [NFC][libclc] Add missing evaluation for variable ${tool}_target The variabls should be evaluated before checking for empty. --- libclc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index ba0fc4b38ce81..088edc06d23d3 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -124,7 +124,7 @@ if( EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} ) endif() foreach( tool IN ITEMS clang opt llvm-as llvm-link ) - if( NOT EXISTS "${${tool}_exe}" AND "${tool}_target" STREQUAL "" ) + if( NOT EXISTS "${${tool}_exe}" AND "${${tool}_target}" STREQUAL "" ) message( FATAL_ERROR "libclc toolchain incomplete - missing tool ${tool}!" ) endif() endforeach()