do not use VERSION target property; confuses OpenBSD's ld
authorMichael Wallner <mike@php.net>
Wed, 4 Nov 2020 11:13:23 +0000 (12:13 +0100)
committerMichael Wallner <mike@php.net>
Wed, 4 Nov 2020 11:13:23 +0000 (12:13 +0100)
src/libhashkit/CMakeLists.txt
src/libmemcached/CMakeLists.txt
src/libmemcachedprotocol/CMakeLists.txt
src/libmemcachedutil/CMakeLists.txt

index 3b4551dbd1f3e5698b60fed5af987a7bbd0626bf..82e4d332a98c2d18c75955c4c2b83d57387b21c9 100644 (file)
@@ -27,8 +27,7 @@ set_target_properties(libhashkit PROPERTIES
         CXX_STANDARD ${CXX_STANDARD}
         LIBRARY_OUTPUT_NAME hashkit
         LIBRARY_OUTPUT_NAME_DEBUG hashkit-dbg
-        SOVERSION ${LIBHASHKIT_SO_VERSION}
-        VERSION v${LIBHASHKIT_VERSION})
+        SOVERSION ${LIBHASHKIT_SO_VERSION})
 target_compile_options(libhashkit PRIVATE -DBUILDING_HASHKIT)
 target_include_directories(libhashkit PRIVATE
         ${CMAKE_SOURCE_DIR}/src
index 2c1e61ac562a34eaac28f073e92052f2288391f3..f43e5adb3dcc67596d0bf7c12a0fd7a56ec3f133 100644 (file)
@@ -88,8 +88,7 @@ set_target_properties(libmemcached PROPERTIES
         CXX_STANDARD ${CXX_STANDARD}
         LIBRARY_OUTPUT_NAME memcached
         LIBRARY_OUTPUT_NAME_DEBUG memcached-dbg
-        SOVERSION ${LIBMEMCACHED_SO_VERSION}
-        VERSION v${LIBMEMCACHED_VERSION})
+        SOVERSION ${LIBMEMCACHED_SO_VERSION})
 target_compile_definitions(libmemcached PRIVATE -DBUILDING_LIBMEMCACHED)
 target_link_libraries(libmemcached PUBLIC libhashkit Threads::Threads ${CMAKE_DL_LIBS})
 if(HAVE_BACKTRACE)
index bf7c8ca976f4c6546154913cebfcf16495e6d893..915a3da10335527d47d43f26aa5fe946aa964695 100644 (file)
@@ -12,8 +12,7 @@ set_target_properties(libmemcachedprotocol PROPERTIES
         CXX_STANDARD ${CXX_STANDARD}
         LIBRARY_OUTPUT_NAME memcachedprotocol
         LIBRARY_OUTPUT_NAME_DEBUG memcachedprotocol-dbg
-        SOVERSION ${LIBMEMCACHEDPROTOCOL_SO_VERSION}
-        VERSION v${LIBMEMCACHEDPROTOCOL_VERSION})
+        SOVERSION ${LIBMEMCACHEDPROTOCOL_SO_VERSION})
 target_compile_definitions(libmemcachedprotocol PRIVATE -DBUILDING_LIBMEMCACHED)
 if(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang)
        set_target_properties(libmemcachedprotocol PROPERTIES
index 6bad745b5e5e8e6ade09c0106e476f872104dbb6..594099bf983ccae6f2de17fcdc9617060416bbbc 100644 (file)
@@ -13,8 +13,7 @@ set_target_properties(libmemcachedutil PROPERTIES
         CXX_STANDARD ${CXX_STANDARD}
         LIBRARY_OUTPUT_NAME memcachedutil
         LIBRARY_OUTPUT_NAME_DEBUG memcachedutil-dbg
-        SOVERSION ${LIBMEMCACHEDUTIL_SO_VERSION}
-        VERSION v${LIBMEMCACHEDUTIL_VERSION})
+        SOVERSION ${LIBMEMCACHEDUTIL_SO_VERSION})
 target_compile_definitions(libmemcachedutil PRIVATE -DBUILDING_LIBMEMCACHED)
 if(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang)
        set_target_properties(libmemcachedutil PROPERTIES