Skip to content

[circle-mlir] Build without installing test dependencies#16485

Draft
arkq wants to merge 1 commit into
Samsung:masterfrom
arkq:circle-mlir-notest
Draft

[circle-mlir] Build without installing test dependencies#16485
arkq wants to merge 1 commit into
Samsung:masterfrom
arkq:circle-mlir-notest

Conversation

@arkq
Copy link
Copy Markdown
Contributor

@arkq arkq commented Apr 20, 2026

This commit wraps GoogleTest installation with ENABLE_TEST which adds possibility to build onnx2circle without test dependencies.

Testing

Verified that build with -DENABLE_TEST=OFF -DENABLE_COVERAGE=OFF works as expected.

This commit wraps GoogleTest installation with ENABLE_TEST which adds
possibility to build onnx2circle without test dependencies.

ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
Copilot AI review requested due to automatic review settings April 20, 2026 10:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the circle-mlir build configurable so onnx2circle (and other non-test targets) can be built without pulling in test-only dependencies (notably GoogleTest).

Changes:

  • Gate GoogleTest/CTest setup behind ENABLE_TEST in the top-level circle-mlir/CMakeLists.txt.
  • Gate the tools-test subdirectory behind ENABLE_TEST in circle-mlir/circle-mlir/CMakeLists.txt.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
circle-mlir/CMakeLists.txt Wraps CTest + GoogleTest setup in if(ENABLE_TEST) so non-test builds don’t fetch/install test deps.
circle-mlir/circle-mlir/CMakeLists.txt Prevents tools-test from being configured/built when tests are disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hseok-oh hseok-oh marked this pull request as draft May 7, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants