diff options
author | Chris Bieneman <beanz@apple.com> | 2017-07-25 20:53:31 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2017-07-25 20:53:31 +0000 |
commit | 02829e6c9c79402c45a6acb42570c013bb9a52db (patch) | |
tree | 6e6fe3b78d753604baf88d87944002d6f6394e4b /cmake | |
parent | 6044a148c62452d24db6f2f5d1aed63d52663e39 (diff) | |
download | llvm-02829e6c9c79402c45a6acb42570c013bb9a52db.tar.gz |
[CMake] Allow TableGen.cmake to be included multiple times
This patch allows TableGen.cmake to be safely included multiple times in sub-projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/TableGen.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake index 8c3e2d7d700..8ee7f970991 100644 --- a/cmake/modules/TableGen.cmake +++ b/cmake/modules/TableGen.cmake @@ -110,7 +110,7 @@ function(add_public_tablegen_target target) set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${target} PARENT_SCOPE) endfunction() -if(LLVM_USE_HOST_TOOLS) +if(LLVM_USE_HOST_TOOLS AND NOT TARGET NATIVE_LIB_LLVMTABLEGEN) llvm_ExternalProject_BuildCmd(tblgen_build_cmd LLVMSupport ${LLVM_NATIVE_BUILD} CONFIGURATION Release) |