[llvm-commits] [llvm] r59374 - /llvm/trunk/tools/llvm-config/CMakeLists.txt
Oscar Fuentes
ofv at wanadoo.es
Sat Nov 15 12:35:25 PST 2008
Author: ofv
Date: Sat Nov 15 14:35:25 2008
New Revision: 59374
URL: http://llvm.org/viewvc/llvm-project?rev=59374&view=rev
Log:
CMake: Recursively invokes cmake using the right directories.
LLVM_MAIN_SRC_DIR and LLVM_BINARY_DIR are not the cmake top level
directories when LLVM is embedded on the build of other project.
Fixes PR #3072.
Modified:
llvm/trunk/tools/llvm-config/CMakeLists.txt
Modified: llvm/trunk/tools/llvm-config/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/CMakeLists.txt?rev=59374&r1=59373&r2=59374&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-config/CMakeLists.txt Sat Nov 15 14:35:25 2008
@@ -99,7 +99,7 @@
COMMAND rm temp.sed
COMMAND cat ${FINAL_LIBDEPS} >> ${LLVM_CONFIG}
COMMAND chmod +x ${LLVM_CONFIG}
- COMMAND cd ${LLVM_BINARY_DIR} && ${CMAKE_COMMAND} -U HAVE_LLVM_CONFIG ${LLVM_MAIN_SRC_DIR}
+ COMMAND cd ${CMAKE_BINARY_DIR} && ${CMAKE_COMMAND} -U HAVE_LLVM_CONFIG ${CMAKE_SOURCE_DIR}
DEPENDS ${FINAL_LIBDEPS} ${LLVM_CONFIG_IN}
COMMENT "Building llvm-config script."
)
More information about the llvm-commits
mailing list