[PATCH] D57996: [llvm] [cmake] Use current directory in GenerateVersionFromVCS
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 11 01:09:29 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL353674: [llvm] [cmake] Use current directory in GenerateVersionFromVCS (authored by mgorny, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D57996?vs=186104&id=186193#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57996/new/
https://reviews.llvm.org/D57996
Files:
llvm/trunk/cmake/modules/GenerateVersionFromVCS.cmake
Index: llvm/trunk/cmake/modules/GenerateVersionFromVCS.cmake
===================================================================
--- llvm/trunk/cmake/modules/GenerateVersionFromVCS.cmake
+++ llvm/trunk/cmake/modules/GenerateVersionFromVCS.cmake
@@ -9,11 +9,9 @@
# where "<NAME>" is substituted with the names specified in the input variables,
# for each of the <NAME>_SOURCE_DIR given.
-get_filename_component(LLVM_DIR "${CMAKE_SCRIPT_MODE_FILE}" PATH)
-get_filename_component(LLVM_DIR "${LLVM_DIR}" PATH)
-get_filename_component(LLVM_DIR "${LLVM_DIR}" PATH)
+get_filename_component(LLVM_CMAKE_DIR "${CMAKE_SCRIPT_MODE_FILE}" PATH)
-list(APPEND CMAKE_MODULE_PATH "${LLVM_DIR}/cmake/modules")
+list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(VersionFromVCS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57996.186193.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190211/bbc5d1a2/attachment.bin>
More information about the llvm-commits
mailing list