[llvm] r200134 - [CMake] configure_lit_site_cfg: ${SHLIBDIR} should point the build tree.
NAKAMURA Takumi
geek4civic at gmail.com
Sat Jan 25 22:18:57 PST 2014
Author: chapuni
Date: Sun Jan 26 00:18:56 2014
New Revision: 200134
URL: http://llvm.org/viewvc/llvm-project?rev=200134&view=rev
Log:
[CMake] configure_lit_site_cfg: ${SHLIBDIR} should point the build tree.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=200134&r1=200133&r2=200134&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sun Jan 26 00:18:56 2014
@@ -436,11 +436,15 @@ function(configure_lit_site_cfg input ou
set(LLVM_BUILD_MODE "%(build_mode)s")
endif ()
+ # They below might not be the build tree but provided binary tree.
set(LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR})
set(LLVM_BINARY_DIR ${LLVM_BINARY_DIR})
string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} LLVM_TOOLS_DIR ${LLVM_TOOLS_BINARY_DIR})
string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} LLVM_LIBS_DIR ${LLVM_LIBRARY_DIR})
- string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} SHLIBDIR ${LLVM_LIBRARY_DIR})
+
+ # SHLIBDIR points the build tree.
+ string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} SHLIBDIR ${LLVM_LIBRARY_OUTPUT_INTDIR})
+
set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
set(ENABLE_SHARED ${LLVM_SHARED_LIBS_ENABLED})
set(SHLIBPATH_VAR ${SHLIBPATH_VAR})
More information about the llvm-commits
mailing list