Files
concrete/compiler/cmake/modules/AddConcretelangDoc.cmake
Andi Drebes 6c2b1addcc enhance(build): Pass trailing arguments from add_concretelang_doc to add_mlir_doc
Pass all arguments starting with `command` passed to
`add_concretelang_doc` to `add_mlir_doc`. This allows for the
specification of additional command line arguments to be passed to
`mlir-tblgen`.
2022-07-27 22:39:54 +02:00

10 lines
386 B
CMake

include(AddMLIR)
function(add_concretelang_doc doc_filename output_file output_directory command)
set(SAVED_MLIR_BINARY_DIR ${MLIR_BINARY_DIR})
set(MLIR_BINARY_DIR ${CONCRETELANG_BINARY_DIR})
add_mlir_doc(${doc_filename} ${output_file} ${output_directory} ${command} ${ARGN})
set(MLIR_BINARY_DIR ${SAVED_MLIR_BINARY_DIR})
unset(SAVED_MLIR_BINARY_DIR)
endfunction()