diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2017-10-28 22:16:06 (GMT) |
---|---|---|
committer | Domen Vrankar <domen.vrankar@gmail.com> | 2017-10-28 22:20:54 (GMT) |
commit | 5784ab8fcab556d4d73b15b7d84bf167daf4c5a2 (patch) | |
tree | a2466de084ae6eb2b46abfee6b2de0c17b4d02cf /Modules/CPackDeb.cmake | |
parent | ced94bcbd91b9ff486367f5187cf5760c02a707b (diff) | |
download | CMake-5784ab8fcab556d4d73b15b7d84bf167daf4c5a2.zip CMake-5784ab8fcab556d4d73b15b7d84bf167daf4c5a2.tar.gz CMake-5784ab8fcab556d4d73b15b7d84bf167daf4c5a2.tar.bz2 |
CPack/Deb: handle shlibs file generation when SOVERSION set to 0
Setting CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS did not
auto generate shlibs control file when .so version
of the library was set to 0.
Fixes #17318
Diffstat (limited to 'Modules/CPackDeb.cmake')
-rw-r--r-- | Modules/CPackDeb.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake index 1879827..91bf2f2 100644 --- a/Modules/CPackDeb.cmake +++ b/Modules/CPackDeb.cmake @@ -987,7 +987,7 @@ function(cpack_deb_prepare_package_vars) if(READELF_EXECUTABLE) foreach(_FILE IN LISTS CPACK_DEB_SHARED_OBJECT_FILES) extract_so_info("${_FILE}" libname soversion) - if(libname AND soversion) + if(libname AND DEFINED soversion) list(APPEND CPACK_DEBIAN_PACKAGE_SHLIBS_LIST "${libname} ${soversion} ${CPACK_DEBIAN_PACKAGE_NAME} (${CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY} ${CPACK_DEBIAN_PACKAGE_VERSION})") else() |