mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
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`.
10 lines
386 B
CMake
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()
|