[CMake] Move intrinsics_gen to lib/Target out of add_public_tablegen_target.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 20 Feb 2014 13:42:30 +0000 (13:42 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 20 Feb 2014 13:42:30 +0000 (13:42 +0000)
add_public_tablegen_target is used somewhere.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201787 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/TableGen.cmake
lib/Target/CMakeLists.txt

index fdb47511dcca9683864c3a83054cfc1ef9e0ac1a..36404811d7d3c647c45ee3ffc9e3befeef006583 100644 (file)
@@ -65,7 +65,7 @@ macro(add_public_tablegen_target target)
       add_dependencies(${target} ${LLVM_COMMON_DEPENDS})
     endif ()
     set_target_properties(${target} PROPERTIES FOLDER "Tablegenning")
-    list(APPEND LLVM_COMMON_DEPENDS ${target} intrinsics_gen)
+    list(APPEND LLVM_COMMON_DEPENDS ${target})
   endif( TABLEGEN_OUTPUT )
 endmacro()
 
index c2f704f133449e9e4ade437b829af8832733066d..06a74d7208100dec74466d24d688f5937339d485 100644 (file)
@@ -9,6 +9,8 @@ add_llvm_library(LLVMTarget
   TargetSubtargetInfo.cpp
   )
 
+list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
+
 foreach(t ${LLVM_TARGETS_TO_BUILD})
   message(STATUS "Targeting ${t}")
   add_subdirectory(${t})