r201971 - [CMake] Deprecate clang_tablegen(DEPENDS).

NAKAMURA Takumi geek4civic at gmail.com
Sun Feb 23 04:53:46 PST 2014


Author: chapuni
Date: Sun Feb 23 06:53:45 2014
New Revision: 201971

URL: http://llvm.org/viewvc/llvm-project?rev=201971&view=rev
Log:
[CMake] Deprecate clang_tablegen(DEPENDS).

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=201971&r1=201970&r2=201971&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Sun Feb 23 06:53:45 2014
@@ -255,7 +255,7 @@ function(clang_tablegen)
   # executing the custom command depending on output-file. It is
   # possible to list more files to depend after DEPENDS.
 
-  cmake_parse_arguments(CTG "" "SOURCE;TARGET" "DEPENDS" ${ARGN})
+  cmake_parse_arguments(CTG "" "SOURCE;TARGET" "" ${ARGN})
 
   if( NOT CTG_SOURCE )
     message(FATAL_ERROR "SOURCE source-file required by clang_tablegen")
@@ -266,7 +266,7 @@ function(clang_tablegen)
 
   list(GET CTG_UNPARSED_ARGUMENTS 0 output_file)
   if( CTG_TARGET )
-    add_custom_target( ${CTG_TARGET} DEPENDS ${output_file} ${CTG_DEPENDS} )
+    add_custom_target(${CTG_TARGET} DEPENDS ${output_file})
     set_target_properties( ${CTG_TARGET} PROPERTIES FOLDER "Clang tablegenning")
     set_property(GLOBAL APPEND PROPERTY CLANG_TABLEGEN_TARGETS ${CTG_TARGET})
   endif()





More information about the cfe-commits mailing list