Skip to content

Commit

Permalink
[flang][runtime] Added Clang CMake modules include path.
Browse files Browse the repository at this point in the history
Fortran runtime standalone build is broken after D140998
because of the missing CMake modules path. This is a fix.

Differential Revision: https://reviews.llvm.org/D149090
  • Loading branch information
vzakhari committed Apr 25, 2023
1 parent ee371b2 commit 55c88aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flang/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)

set(LLVM_COMMON_CMAKE_UTILS "${FLANG_SOURCE_DIR}/../cmake")
set(LLVM_CMAKE_UTILS "${FLANG_SOURCE_DIR}/../llvm/cmake")
set(CLANG_CMAKE_UTILS "${FLANG_SOURCE_DIR}/../clang/cmake")

# Add path for custom modules
list(INSERT CMAKE_MODULE_PATH 0
Expand All @@ -35,8 +36,10 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
"${LLVM_COMMON_CMAKE_UTILS}/Modules"
"${LLVM_CMAKE_UTILS}"
"${LLVM_CMAKE_UTILS}/modules"
"${CLANG_CMAKE_UTILS}/modules"
)

include(AddClang)
include(AddLLVM)
include(AddFlang)
include(HandleLLVMOptions)
Expand Down

0 comments on commit 55c88aa

Please sign in to comment.