From 0ed2f4e98b506a2044bd0d82784c0b88dd36b90d Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Wed, 19 Oct 2016 12:21:39 +0000 Subject: [PATCH] [cmake] Use LLVM_CMAKE_PATH for GetSVN script Use the LLVM_CMAKE_PATH variable to locate the GetSVN.cmake script. The variable was already available in stand-alone builds, and is also set by LLVM since r284581. llvm-svn: 284582 --- clang/lib/Basic/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Basic/CMakeLists.txt b/clang/lib/Basic/CMakeLists.txt index ad460d4..8929ec3 100644 --- a/clang/lib/Basic/CMakeLists.txt +++ b/clang/lib/Basic/CMakeLists.txt @@ -28,7 +28,7 @@ find_first_existing_vc_file(clang_vc "${CLANG_SOURCE_DIR}") # The VC revision include that we want to generate. set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/SVNVersion.inc") -set(get_svn_script "${LLVM_MAIN_SRC_DIR}/cmake/modules/GetSVN.cmake") +set(get_svn_script "${LLVM_CMAKE_PATH}/GetSVN.cmake") if(DEFINED llvm_vc AND DEFINED clang_vc) # Create custom target to generate the VC revision include. -- 2.7.4