================
@@ -45,7 +45,9 @@ if(CLANG_BUILT_STANDALONE)
     mark_as_advanced(LLVM_ENABLE_ASSERTIONS)
   endif()
 
-  find_package(LLVM REQUIRED HINTS "${LLVM_CMAKE_DIR}")
+  if(NOT LLVM_FOUND)
----------------
ferdymercury wrote:

But wouldn't then that invalidate the use case of setting LLVM_ROOT or LLVM_DIR 
just to help find_package to find LLVM ? (Even if here it has a custom extra 
LLVM_CMAKE_DIR variable as hint).

Maybe sth composite such as

`if(NOT LLVM_FOUND OR NOT LLVM_DIR)` ?

https://github.com/llvm/llvm-project/pull/218965
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to