binary addons: fix dependency handling for dependencies
Merge pull request #5680 from Montellese/cmake_fix_deps

binary addons: fix dependency handling for dependencies