Problem while checking for SOVERSION in CPackDeb
When the CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS is ON and SOVERSION property is set to 0 for a library target, the check for
if(libname AND soversion)
while generating the shared libraries/dependencies for a DEB package fails and the DEBIAN/shlibs isn't generated. Maybe the condition should be
if(libname AND DEFINED soversion)
since it's valid for a library to have 0 as the .so version.
Edited by Andrés Sánchez