fix(build): use project_name in variable exported by sight_generate_components_list
requested to merge 742-fix-build-use-project_name-in-variable-exported-by-sight_generate_components_list into dev
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.