libpiglit: Set CMAKE SOVERSION for internal libraries to "0"

Graphics / Mesa 3D Graphics Library / Piglit - Jordan Justen [intel.com] - 26 September 2014 19:17 UTC

When packaging for piglit for debian, I see this type of message: dpkg-shlibdeps: warning: Can't extract name and version from library name libpiglitutil.so

It it repeated several times for each piglit executable causing a significant delay in the build time. Setting a soname version for these internal libraries causes this message to go away.

###

diff --git a/cmake/piglit_util.cmake b/cmake/piglit_util.cmake
index e2c3454..45143d2 100644
--- a/cmake/piglit_util.cmake
+++ b/cmake/piglit_util.cmake
@@ -84,5 +84,6 @@ function(piglit_add_library name)
install(TARGETS ${name} DESTINATION ${PIGLIT_INSTALL_LIBDIR}/lib)
endif(WIN32)
add_dependencies(${name} piglit_dispatch_gen)
+ set_target_properties(${name} PROPERTIES SOVERSION "0")

endfunction(piglit_add_library)

4efb025 libpiglit: Set CMAKE SOVERSION for internal libraries to "0"
cmake/piglit_util.cmake | 1 +
1 file changed, 1 insertion(+)

Upstream: cgit.freedesktop.org


  • Share