I have the same issue as http://public.kitware.com/Bug/view.php?id=12431
The problem is that when making a .deb using cpack, and dpkg-shlibdeps has been enabled, and the executable is using rpath with $ORIGIN, dpkg-shlibdeps requires DEBIAN directory in order to relativize $ORIGIN. The solution is to create a DEBIAN directory side-by-side with the debian directory, as mentioned in the bug. I attach a patch, it would be great if this could be included in CMake.
0001-Create-DEBIAN-directory-for-dpkg-shlibdeps.patch
Description: Binary data
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers