Skip to content

[core] Update documentation for ov_add_target function for GLOB migration#36943

Open
praasz wants to merge 1 commit into
openvinotoolkit:masterfrom
praasz:cmake/update-documentation-for-ov-target
Open

[core] Update documentation for ov_add_target function for GLOB migration#36943
praasz wants to merge 1 commit into
openvinotoolkit:masterfrom
praasz:cmake/update-documentation-for-ov-target

Conversation

@praasz

@praasz praasz commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Details:

This pull request updates the ov_add_target CMake helper to clarify and reinforce the preferred approach for specifying source files in target definitions. The changes add clear documentation and guidance on using explicit SOURCES lists instead of the legacy ROOT-based globbing, and update argument descriptions to reflect this preference.

Documentation and usage guidance improvements:

  • Added a detailed section to add_target_helpers.cmake explaining the preferred use of explicit SOURCES lists over the legacy ROOT argument, including migration steps and examples.
  • Updated the argument descriptions in the ov_add_target function to mark SOURCES as "[PREFERRED]" and ROOT as "[LEGACY]", making the recommended usage clear in both documentation and code.

Tickets:

AI Assistance:

  • AI assistance used: yes

…ce listing usage and migration from ROOT to SOURCES
@praasz
praasz requested a review from a team as a code owner July 17, 2026 10:41
@github-actions github-actions Bot added the category: build OpenVINO cmake script / infra label Jul 17, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants