Skip to content

fix(build): use project_name in variable exported by sight_generate_components_list

Description

Do not export SIGHT_COMPONENTS in sight_generate_components_list cmake function, use instead COMPONENTS. This avoid variable collision when using sight in subprojects, SIGHT_COMPONENTS is exported by sightConfig.cmake.

Closes #742 (closed)

How to test it?

Use sight in a subproject, after the first find_package(sight REQUIRED) print SIGHT_COMPONENTS, it should contain only sight related components. try to use the function sight_generate_components_list it should export COMPONENTS with only components related to your project.

Edited by Marc SCHWEITZER

Merge request reports