mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-10-20 17:19:23 +00:00
Add locking so async communication works correctly.
helgrind says it works. I think.
This commit is contained in:
parent
7f25fdb37c
commit
cf9ac6b296
12 changed files with 637 additions and 106 deletions
31
cmake/Modules/Findlibev.cmake
Normal file
31
cmake/Modules/Findlibev.cmake
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Try to find libev
|
||||
# Once done, this will define
|
||||
#
|
||||
# LIBEV_FOUND - system has libev
|
||||
# LIBEV_INCLUDE_DIRS - libev include directories
|
||||
# LIBEV_LIBRARIES - libraries needed to use libev
|
||||
|
||||
if(LIBEV_INCLUDE_DIRS AND LIBEV_LIBRARIES)
|
||||
set(LIBEV_FIND_QUIETLY TRUE)
|
||||
else()
|
||||
find_path(
|
||||
LIBEV_INCLUDE_DIR
|
||||
NAMES ev.h
|
||||
HINTS ${LIBEV_ROOT_DIR}
|
||||
PATH_SUFFIXES include)
|
||||
|
||||
find_library(
|
||||
LIBEV_LIBRARY
|
||||
NAME ev
|
||||
HINTS ${LIBEV_ROOT_DIR}
|
||||
PATH_SUFFIXES ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
set(LIBEV_INCLUDE_DIRS ${LIBEV_INCLUDE_DIR})
|
||||
set(LIBEV_LIBRARIES ${LIBEV_LIBRARY})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(
|
||||
libev DEFAULT_MSG LIBEV_LIBRARY LIBEV_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(LIBEV_LIBRARY LIBEV_INCLUDE_DIR)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue