Skip to content

Prefix VOLK CMake options with VOLK_* to avoid global namespace pollution #861

Description

@xerpi

When integrating VOLK via FetchContent or add_subdirectory, its CMake options are exposed in the global CMake option namespace. This can lead to unintended conflicts or ambiguity, especially in larger projects where generic option names may overlap.

For example, options like:

ENABLE_STATIC_LIBS
ENABLE_TESTING

are too generic and may clash with similarly named options from other dependencies or the parent project.

All VOLK-specific CMake options should be prefixed with VOLK_ to ensure proper namespacing and avoid polluting the global option space.

Example:

ENABLE_STATIC_LIBS -> VOLK_ENABLE_STATIC_LIBS
ENABLE_TESTING -> VOLK_ENABLE_TESTING

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions