mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-01 01:54:21 +00:00
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
This commit is contained in:
parent
ac44d25bdd
commit
2c688da09e
@ -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."
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user