forked from OSchip/llvm-project
[CMake] Deprecate clang_tablegen(DEPENDS).
llvm-svn: 201971
This commit is contained in:
parent
aa675e9379
commit
a7fb2982b9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue