Index: source/CMakeLists.txt =================================================================== --- source/CMakeLists.txt +++ source/CMakeLists.txt @@ -53,7 +53,11 @@ if(DEFINED lldb_vc) set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/SVNVersion.inc") - set(get_svn_script "${LLVM_MAIN_SRC_DIR}/cmake/modules/GetSVN.cmake") + if(LLDB_BUILT_STANDALONE) + set(get_svn_script "${LLVM_CMAKE_PATH}/GetSVN.cmake") + else() + set(get_svn_script "${LLVM_MAIN_SRC_DIR}/cmake/modules/GetSVN.cmake") + endif() # Create custom target to generate the VC revision include. add_custom_command(OUTPUT "${version_inc}"