[CMake] Deprecate clang_tablegen(DEPENDS).

llvm-svn: 201971
This commit is contained in:
NAKAMURA Takumi 2014-02-23 12:53:45 +00:00
parent aa675e9379
commit a7fb2982b9
1 changed files with 2 additions and 2 deletions

View File

@ -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()