[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
This commit is contained in:
parent
e22b7f5aea
commit
0ed2f4e98b
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue