Revert "fix CMake dep to avoid conflicts in cgoolf/cgmpolf/cgmvolf easyconfigs"

This reverts commit e75dda3d411566226f6b6849296783429850506f.
fix conflicts unit tests, exclude dependencies of build dependencies