[llvm] r309029 - [CMake] Allow TableGen.cmake to be included multiple times
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 13:53:31 PDT 2017
Author: cbieneman
Date: Tue Jul 25 13:53:31 2017
New Revision: 309029
URL: http://llvm.org/viewvc/llvm-project?rev=309029&view=rev
Log:
[CMake] Allow TableGen.cmake to be included multiple times
This patch allows TableGen.cmake to be safely included multiple times in sub-projects.
Modified:
llvm/trunk/cmake/modules/TableGen.cmake
Modified: llvm/trunk/cmake/modules/TableGen.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=309029&r1=309028&r2=309029&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake (original)
+++ llvm/trunk/cmake/modules/TableGen.cmake Tue Jul 25 13:53:31 2017
@@ -110,7 +110,7 @@ function(add_public_tablegen_target targ
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)
More information about the llvm-commits
mailing list