If WITH_DEBUG is defined shared objects are installed with -debug suffix. This not only fails to install but would also break consumers. Patch CMakeLists.txt accordingly. Reported by: koobs (via irc)