fix #136: libmemcachedutil is underlinked
authorMichael Wallner <mike@php.net>
Thu, 23 Feb 2023 10:12:27 +0000 (11:12 +0100)
committerMichael Wallner <mike@php.net>
Thu, 23 Feb 2023 10:35:05 +0000 (11:35 +0100)
src/libmemcachedutil/CMakeLists.txt

index 1531cb81df76abf3f83e5b547b127255c40712bb..1fd0fa39895cc7bf6f71c232ddc6d90a37d9764a 100644 (file)
@@ -23,10 +23,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang)
                LINK_FLAGS "-Wl,-undefined,dynamic_lookup"
                )
 endif()
-if(MSVC OR MINGW)
-    target_link_libraries(libmemcachedutil PUBLIC libmemcached)
-endif()
-target_link_libraries(libmemcachedutil PUBLIC Threads::Threads)
+target_link_libraries(libmemcachedutil PUBLIC libmemcached Threads::Threads)
 if(HAVE_LIBSASL)
     target_link_libraries(libmemcachedutil PUBLIC ${LIBSASL})
 endif()