r199901 - [CMake] Migrate LLVMParseArguments to CMakeParseArguments.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Jan 23 07:33:35 PST 2014
Author: chapuni
Date: Thu Jan 23 09:33:35 2014
New Revision: 199901
URL: http://llvm.org/viewvc/llvm-project?rev=199901&view=rev
Log:
[CMake] Migrate LLVMParseArguments to CMakeParseArguments.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=199901&r1=199900&r2=199901&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Thu Jan 23 09:33:35 2014
@@ -243,7 +243,7 @@ configure_file(
${CLANG_SOURCE_DIR}/include/clang/Config/config.h.cmake
${CLANG_BINARY_DIR}/include/clang/Config/config.h)
-include(LLVMParseArguments)
+include(CMakeParseArguments)
function(clang_tablegen)
# Syntax:
@@ -258,16 +258,16 @@ function(clang_tablegen)
# executing the custom command depending on output-file. It is
# possible to list more files to depend after DEPENDS.
- parse_arguments( CTG "SOURCE;TARGET;DEPENDS" "" ${ARGN} )
+ cmake_parse_arguments(CTG "" "SOURCE;TARGET" "DEPENDS" ${ARGN})
if( NOT CTG_SOURCE )
message(FATAL_ERROR "SOURCE source-file required by clang_tablegen")
endif()
set( LLVM_TARGET_DEFINITIONS ${CTG_SOURCE} )
- tablegen( CLANG ${CTG_DEFAULT_ARGS} )
+ tablegen(CLANG ${CTG_UNPARSED_ARGUMENTS})
- list( GET CTG_DEFAULT_ARGS 0 output_file )
+ list(GET CTG_UNPARSED_ARGUMENTS 0 output_file)
if( CTG_TARGET )
add_custom_target( ${CTG_TARGET} DEPENDS ${output_file} ${CTG_DEPENDS} )
set_target_properties( ${CTG_TARGET} PROPERTIES FOLDER "Clang tablegenning")
More information about the cfe-commits
mailing list