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")