[llvm] r269104 - [CMake] Add some extra variables to LLVMConfig.cmake.in
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Tue May 10 12:45:17 PDT 2016
Author: cbieneman
Date: Tue May 10 14:45:17 2016
New Revision: 269104
URL: http://llvm.org/viewvc/llvm-project?rev=269104&view=rev
Log:
[CMake] Add some extra variables to LLVMConfig.cmake.in
Compiler-RT needs LLVM_LIBRARY_DIR, LLVM_BINARY_DIR.
Setting these in LLVMConfig.cmake will allow Compiler-RT to not need to run llvm-config as long as the LLVMConfig.cmake module is in the CMake module path.
Modified:
llvm/trunk/cmake/modules/LLVMConfig.cmake.in
Modified: llvm/trunk/cmake/modules/LLVMConfig.cmake.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMConfig.cmake.in?rev=269104&r1=269103&r2=269104&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMConfig.cmake.in (original)
+++ llvm/trunk/cmake/modules/LLVMConfig.cmake.in Tue May 10 14:45:17 2016
@@ -49,8 +49,10 @@ set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFF
set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
+set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
+set(LLVM_BINARY_DIR "${LLVM_INSTALL_PREFIX}")
set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
if(NOT TARGET LLVMSupport)
More information about the llvm-commits
mailing list