From: Gleb Balykov Date: Mon, 13 May 2019 17:14:28 +0000 (+0300) Subject: Fix build error for mscoree coreclr.exports (#24547) X-Git-Tag: accepted/tizen/unified/20190813.215958~42^2~240 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24cdacaeb1e42a92051b32a6c4051b7a12ff2770;p=platform%2Fupstream%2Fcoreclr.git Fix build error for mscoree coreclr.exports (#24547) This partially reverts #23853 --- diff --git a/functions.cmake b/functions.cmake index d20a574..d868445 100644 --- a/functions.cmake +++ b/functions.cmake @@ -86,7 +86,11 @@ function(preprocess_def_file inputFilename outputFilename) PROPERTIES GENERATED TRUE) endfunction() -function(generate_exports_file inputFilename outputFilename) +function(generate_exports_file) + set(INPUT_LIST ${ARGN}) + list(GET INPUT_LIST -1 outputFilename) + list(REMOVE_AT INPUT_LIST -1) + if(CMAKE_SYSTEM_NAME STREQUAL Darwin) set(AWK_SCRIPT generateexportedsymbols.awk) else() @@ -95,8 +99,8 @@ function(generate_exports_file inputFilename outputFilename) add_custom_command( OUTPUT ${outputFilename} - COMMAND ${AWK} -f ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} ${inputFilename} >${outputFilename} - DEPENDS ${inputFilename} ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} + COMMAND ${AWK} -f ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} ${INPUT_LIST} >${outputFilename} + DEPENDS ${INPUT_LIST} ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} COMMENT "Generating exports file ${outputFilename}" ) set_source_files_properties(${outputFilename}