Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the doc example obey ONNX_MLIR_BUILD_TESTS (llvm#1083)
* Make the doc example obey ONNX_MLIR_BUILD_TESTS Currently, ONNX_MLIR_BUILD_TESTS controls EXCLUDE_FROM_ALL, however, the targets added through add_executable will always build. We follow the llvm pattern and explicitly set EXCLUDE_FROM_ALL in the add_onnx_mlir_executable function if it is set for the directory, so that add_executable targets don't always build. Signed-off-by: Stella Stamenova <stilis@microsoft.com>
- Loading branch information