Sha256: d7536a5c09bd840b926084044e077ed1c00b703cc601336abe0c2d5135dc780c

Contents?: true

Size: 543 Bytes

Versions: 14

Compression:

Stored size: 543 Bytes

Contents

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${node_platform}-${cares_arch})
add_definitions(-DHAVE_CONFIG_H=1)

include(CheckLibraryExists)
check_library_exists(socket socket "" HAVE_SOCKET_LIB)
check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB)

file(GLOB lib_sources *.c)
add_library(cares ${lib_sources})

if(${HAVE_SOCKET_LIB})
  set(cares_libs ${cares_libs} socket)
endif()

if(${HAVE_NSL_LIB})
  set(cares_libs ${cares_libs} nsl)
endif()

if(cares_libs)
  target_link_libraries(cares ${cares_libs})
endif()

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
racer-0.1.3 ext/libuv/src/ares/CMakeLists.txt
asyncengine-0.0.2.alpha1 ext/asyncengine/libuv/src/ares/CMakeLists.txt
asyncengine-0.0.1.testing1 ext/asyncengine/libuv/src/ares/CMakeLists.txt
asyncengine-0.0.1.testing ext/asyncengine_ext/libuv/src/ares/CMakeLists.txt
noderb-0.0.12 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.11 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.10 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.9 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.8 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.7 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.6 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.4 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.3 ext/noderb_extension/libuv/src/ares/CMakeLists.txt
noderb-0.0.2 ext/noderb_extension/libuv/src/ares/CMakeLists.txt