Commit 81481096 authored by Vinson Lee's avatar Vinson Lee

libpiglit: Do not set CMAKE_SOVERSION on OpenBSD.

This patch fixes build regression on OpenBSD introduced with commit
4efb025f 'libpiglit: Set CMAKE SOVERSION
for internal libraries to "0"'.

Linking CXX shared library ../../../../lib/libpiglitutil_gl.so
/usr/bin/ld: cannot find -llibpiglitutil.so.0
collect2: ld returned 1 exit status
target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/build.make:515: recipe for target
'lib/libpiglitutil_gl.so.0' failed

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84969Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 1e56b8f5
......@@ -84,6 +84,8 @@ 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")
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
set_target_properties(${name} PROPERTIES SOVERSION "0")
endif()
endfunction(piglit_add_library)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment