Skip to content

[LPT] Remove CMake GLOB from openvino_lpt library - #36616

Open
v-Golubev wants to merge 4 commits into
openvinotoolkit:masterfrom
v-Golubev:vg/lpt/avoid_cmake_glob
Open

[LPT] Remove CMake GLOB from openvino_lpt library#36616
v-Golubev wants to merge 4 commits into
openvinotoolkit:masterfrom
v-Golubev:vg/lpt/avoid_cmake_glob

Conversation

@v-Golubev

Copy link
Copy Markdown
Contributor

Tickets:

AI Assistance:

  • AI assistance used: yes

@v-Golubev
v-Golubev requested a review from a team as a code owner June 29, 2026 12:23
@github-actions github-actions Bot added category: build OpenVINO cmake script / infra category: LP transformations OpenVINO Low Precision transformations labels Jun 29, 2026
@v-Golubev
v-Golubev requested review from a team as code owners June 30, 2026 10:18
@github-actions github-actions Bot added the category: IE Tests OpenVINO Test: plugins and common label Jun 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 removes file(GLOB* ...)-based source/header discovery from Low Precision Transformations (LPT) CMake targets by replacing it with explicit source/header lists, making the build inputs deterministic and less sensitive to filesystem changes.

Changes:

  • Replace ov_add_target()-driven GLOBbing in ov_lpt_models with explicit SOURCES / PUBLIC_HEADERS and direct add_library().
  • Replace ov_add_test_target()-driven GLOBbing in LPT tests with explicit SOURCES / HEADERS and direct add_executable() + add_test().
  • Replace file(GLOB_RECURSE ...) in openvino_lp_transformations with explicit LIBRARY_SRC / PUBLIC_HEADERS lists.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/tests/ov_helpers/ov_lpt_models/CMakeLists.txt Switch ov_lpt_models to explicit source/header lists (no GLOB).
src/common/low_precision_transformations/tests/CMakeLists.txt Switch LPT test executable to explicit source list and manual test registration.
src/common/low_precision_transformations/CMakeLists.txt Replace recursive source/header GLOBs with explicit lists for the LPT library.

Comment thread src/common/low_precision_transformations/tests/CMakeLists.txt Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

@v-Golubev

Copy link
Copy Markdown
Contributor Author

@praasz could you please take a look?


set(TARGET_NAME ov_lp_transformations_tests)

ov_add_test_target(

@praasz praasz Jul 22, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See core unit test target
This helper can be still used with different input.

Here is updated documentation and migration

@praasz praasz added this to the 2026.4 milestone Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: build OpenVINO cmake script / infra category: IE Tests OpenVINO Test: plugins and common category: LP transformations OpenVINO Low Precision transformations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants