Skip to content

Commit 7112182

Browse files
committed
CMake: Fix stand-alone clang builds since r353268
Summary: Handle the case where LLVM_MAIN_SRC_DIR is not set and also use LLVM_CMAKE_DIR for locating installed cmake files rather than LLVM_CMAKE_PATH. Reviewers: phosek, andrewrk, smeenai Reviewed By: phosek, andrewrk, smeenai Subscribers: mgorny, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D58204 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354417 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 76db3f4 commit 7112182

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/AddLLVM.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,9 @@ function(setup_dependency_debugging name)
17181718
endfunction()
17191719

17201720
function(find_first_existing_vc_file path out_var)
1721+
if(NOT EXISTS "${path}")
1722+
return()
1723+
endif()
17211724
if(EXISTS "${path}/.svn")
17221725
set(svn_files
17231726
"${path}/.svn/wc.db" # SVN 1.7

0 commit comments

Comments
 (0)