X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcachedprotocol%2FCMakeLists.txt;h=915a3da10335527d47d43f26aa5fe946aa964695;hb=8734a061ef5bafbbe46523a0729898008d479dbf;hp=14967dd55e0efa602e2d29295b375a6f15b954bc;hpb=785f671d065aa12941a98fca384248ac5cd6e527;p=awesomized%2Flibmemcached diff --git a/src/libmemcachedprotocol/CMakeLists.txt b/src/libmemcachedprotocol/CMakeLists.txt index 14967dd5..915a3da1 100644 --- a/src/libmemcachedprotocol/CMakeLists.txt +++ b/src/libmemcachedprotocol/CMakeLists.txt @@ -9,12 +9,17 @@ add_library(libmemcachedprotocol SHARED ) add_library(memcachedprotocol ALIAS libmemcachedprotocol) 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) -target_link_libraries(libmemcachedprotocol PUBLIC libmemcached Threads::Threads) +if(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang) + set_target_properties(libmemcachedprotocol PROPERTIES + LINK_FLAGS "-Wl,-undefined,dynamic_lookup" + ) +endif() +target_link_libraries(libmemcachedprotocol PUBLIC Threads::Threads) target_include_directories(libmemcachedprotocol PRIVATE ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src