From: Michal Gorny Date: Wed, 19 Oct 2016 12:21:39 +0000 (+0000) Subject: [cmake] Use LLVM_CMAKE_PATH for GetSVN script X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7408b63e7a3d9dfa5e736f1d5fd7c727f0a637f9;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284582 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/CMakeLists.txt b/lib/Basic/CMakeLists.txt index ad460d4965..8929ec30ff 100644 --- a/lib/Basic/CMakeLists.txt +++ b/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.