diff options
author | Vinson Lee <vlee@freedesktop.org> | 2014-10-18 15:38:19 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-10-20 17:04:55 -0700 |
commit | 81481096dccb65b8b2601718123afe3e782849d2 (patch) | |
tree | 33b4ef114e97b593d3488cd58746799166200cc5 /cmake | |
parent | 1e56b8f5503ce8916d62775499b58931c2b14e22 (diff) |
libpiglit: Do not set CMAKE_SOVERSION on OpenBSD.
This patch fixes build regression on OpenBSD introduced with commit
4efb025fcac0b37d04ab759ab15055f27cea94f8 '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=84969
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/piglit_util.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/piglit_util.cmake b/cmake/piglit_util.cmake index 45143d2a5..411fa54e3 100644 --- a/cmake/piglit_util.cmake +++ b/cmake/piglit_util.cmake @@ -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) |