From 0dbad0b8ebf7434b594b9a0a76467a89b858d336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Pomp=C3=B2?= <6452799+deade1e@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:58:17 +0200 Subject: [PATCH] Fix condition for setting TARGET_C_COMPILER --- string/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string/CMakeLists.txt b/string/CMakeLists.txt index 9025150..ac1dfbd 100644 --- a/string/CMakeLists.txt +++ b/string/CMakeLists.txt @@ -2,7 +2,7 @@ find_program(XXD xxd) # If defined, use the target compiler. # For cross-compilation the LLVM-IR generated is still arch specific. -if (NOT ${TARGET_C_COMPILER}) +if (TARGET_C_COMPILER) set(CLANG ${TARGET_C_COMPILER}) else() set(CLANG "${LLVM_TOOLS_BINARY_DIR}/clang")