[flang-commits] [flang] [flang][build] Fixed paths discrovery for the out-of-tree build. (PR #87822)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Fri Apr 5 12:33:21 PDT 2024


================
@@ -81,12 +81,13 @@ if (FLANG_STANDALONE_BUILD)
     mark_as_advanced(LLVM_ENABLE_ASSERTIONS)
   endif()
 
-  # We need a pre-built/installed version of LLVM.
-  find_package(LLVM REQUIRED HINTS "${LLVM_CMAKE_DIR}")
----------------
vzakhari wrote:

This use of `LLVM_CMAKE_DIR` does not make much sense to me, because it is set by `LLVMConfig.cmake` which is not in effect before this `find_package` command executes.

https://github.com/llvm/llvm-project/pull/87822


More information about the flang-commits mailing list