CMake: fix infinite recursion with debhelper

Fix infinite recursion when you try to build debian packages.