CMakeConfig: Replaced dependency list by HashSet

1 job for richter-dev in 2 minutes and 45 seconds (queued for 2 seconds)