diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-15 20:35:25 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-15 20:35:25 +0000 |
commit | 2c688da09edddec74fa19fe3343f61a477b0b85a (patch) | |
tree | def7d31898d528fd3ac4f7bc744f2af90d251dc8 /tools/llvm-config/CMakeLists.txt | |
parent | ac44d25bdd28c923756e2603560c132c0ea2eb91 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-config/CMakeLists.txt')
-rw-r--r-- | tools/llvm-config/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index 0ff332a815..eb78840df0 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -99,7 +99,7 @@ add_custom_command(OUTPUT ${LLVM_CONFIG} 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." ) |