CMake: Fixed parallel build problem related to native tblgen when
[oota-llvm.git] / CMakeLists.txt
index 6c2c16bdd296f2d96a2ec148594abc730bf74a03..3e7b8c16f11ada929ba202fbeb169a9c91db7bf8 100644 (file)
@@ -222,6 +222,8 @@ set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${LLVM_LIBS} )
 
 set(LLVM_TABLEGEN "tblgen" CACHE
   STRING "Native TableGen executable. Saves building one when cross-compiling.")
+# Effective tblgen executable to be used:
+set(LLVM_TABLEGEN_EXE ${LLVM_TABLEGEN})
 
 add_subdirectory(utils/TableGen)