[llvm] r201046 - De-duplicate references to share/llvm/cmake path
NAKAMURA Takumi
geek4civic at gmail.com
Sun Feb 9 08:35:30 PST 2014
Author: chapuni
Date: Sun Feb 9 10:35:29 2014
New Revision: 201046
URL: http://llvm.org/viewvc/llvm-project?rev=201046&view=rev
Log:
De-duplicate references to share/llvm/cmake path
Use a LLVM_INSTALL_PACKAGE_DIR variable to hold the path and reference
it where necessary.
Contributed by Brad King.
Modified:
llvm/trunk/cmake/modules/CMakeLists.txt
Modified: llvm/trunk/cmake/modules/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/CMakeLists.txt?rev=201046&r1=201045&r2=201046&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/CMakeLists.txt (original)
+++ llvm/trunk/cmake/modules/CMakeLists.txt Sun Feb 9 10:35:29 2014
@@ -1,4 +1,5 @@
-set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm/cmake")
+set(LLVM_INSTALL_PACKAGE_DIR share/llvm/cmake)
+set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
set(LLVM_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS)
@@ -24,10 +25,10 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
${llvm_cmake_builddir}/LLVMConfig.cmake
${llvm_cmake_builddir}/LLVMConfigVersion.cmake
LLVM-Config.cmake
- DESTINATION share/llvm/cmake)
+ DESTINATION ${LLVM_INSTALL_PACKAGE_DIR})
install(DIRECTORY .
- DESTINATION share/llvm/cmake
+ DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}
FILES_MATCHING PATTERN *.cmake
PATTERN .svn EXCLUDE
PATTERN LLVMConfig.cmake EXCLUDE
More information about the llvm-commits
mailing list