[CMake][release] Remove debug output that should never be commited.
(cherry picked from commit c15d41cdb873228a5dd02c85319edc6f3697b9b3)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[cmake,bugfix] Fixes requiredness of module

Previously, dependencies were not correctly searched for as
required packages. This patch fixes this.
(cherry picked from commit 8f402156276032163adc925e253bbdeb6a19cec1)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>