mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
446beebd79
Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with contributions from Mark Constable (markc@renta.net) and Daniel Gröber (darklord@darkboxed.org).
11 lines
317 B
CMake
11 lines
317 B
CMake
if(SHARED_LIBEV)
|
|
find_library(LIBEV_LIBRARY NAMES ev)
|
|
find_path(LIBEV_INCLUDE_DIR ev.h
|
|
PATH_SUFFIXES include/ev include
|
|
) # Find header
|
|
find_package_handle_standard_args(libev DEFAULT_MSG LIBEV_LIBRARY LIBEV_INCLUDE_DIR)
|
|
else()
|
|
add_subdirectory(deps/libev)
|
|
set(LIBEV_INCLUDE_DIR deps/libev)
|
|
endif()
|