Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/doc_example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# SPDX-License-Identifier: Apache-2.0

# If 'ONNX_MLIR_BUILD_TESTS' is *not* ON, set 'EXCLUDE_FROM_ALL' for this directory. This will allow test targets to be
# defined, but 'all' will not depend on them by default.
if (NOT ONNX_MLIR_BUILD_TESTS)
set(EXCLUDE_FROM_ALL ON)
set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL ON)
endif()

add_custom_target(doc-example)
Expand Down
6 changes: 6 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# SPDX-License-Identifier: Apache-2.0

# If 'ONNX_MLIR_BUILD_TESTS' is *not* ON, set 'EXCLUDE_FROM_ALL' for this directory. This will allow test targets to be
# defined, but 'all' will not depend on them by default.
if (NOT ONNX_MLIR_BUILD_TESTS)
set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL ON)
endif()

# Valid optimization levels are 0, 1, 2, and 3
# Default to 3 if ONNX_MLIR_TEST_OPTLEVEL not set or cached
set(OPTLEVELS 0 1 2 3)
Expand Down
4 changes: 0 additions & 4 deletions test/multiple-models/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if (NOT ONNX_MLIR_BUILD_TESTS)
set(EXCLUDE_FROM_ALL ON)
endif()

configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/add_sub_onnx.py
${CMAKE_CURRENT_BINARY_DIR}/add_sub_onnx.py
Expand Down
Loading