[Lldb-commits] [PATCH] D25668: [cmake] Respect LLVM_CMAKE_PATH in stand-alone builds for GetSVN.cmake
Michał Górny via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 17 01:11:34 PDT 2016
mgorny created this revision.
mgorny added reviewers: beanz, krytarowski.
mgorny added a subscriber: lldb-commits.
Use LLVM_CMAKE_PATH to spawn GetSVN.cmake rather than the source path
when stand-alone build is performed, to remove the unnecessary
dependency on LLVM sources and use the installed version instead.
Non-standalone builds retain the old behavior.
https://reviews.llvm.org/D25668
Files:
source/CMakeLists.txt
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}"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25668.74817.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161017/a2ad6017/attachment.bin>
More information about the lldb-commits
mailing list