File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ configure_file(
243
243
${CLANG_SOURCE_DIR} /include/clang/Config/config.h.cmake
244
244
${CLANG_BINARY_DIR} /include/clang/Config/config.h )
245
245
246
- include (LLVMParseArguments )
246
+ include (CMakeParseArguments )
247
247
248
248
function (clang_tablegen )
249
249
# Syntax:
@@ -258,16 +258,16 @@ function(clang_tablegen)
258
258
# executing the custom command depending on output-file. It is
259
259
# possible to list more files to depend after DEPENDS.
260
260
261
- parse_arguments ( CTG "SOURCE;TARGET;DEPENDS " "" ${ARGN} )
261
+ cmake_parse_arguments ( CTG "" " SOURCE;TARGET" "DEPENDS " ${ARGN} )
262
262
263
263
if ( NOT CTG_SOURCE )
264
264
message (FATAL_ERROR "SOURCE source-file required by clang_tablegen" )
265
265
endif ()
266
266
267
267
set ( LLVM_TARGET_DEFINITIONS ${CTG_SOURCE} )
268
- tablegen ( CLANG ${CTG_DEFAULT_ARGS} )
268
+ tablegen (CLANG ${CTG_UNPARSED_ARGUMENTS} )
269
269
270
- list ( GET CTG_DEFAULT_ARGS 0 output_file )
270
+ list (GET CTG_UNPARSED_ARGUMENTS 0 output_file )
271
271
if ( CTG_TARGET )
272
272
add_custom_target ( ${CTG_TARGET} DEPENDS ${output_file} ${CTG_DEPENDS} )
273
273
set_target_properties ( ${CTG_TARGET} PROPERTIES FOLDER "Clang tablegenning" )
You can’t perform that action at this time.
0 commit comments