Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/FindEvent.cmake
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if(Event_INCLUDE_DIR) | ||||
find_component(Event event | find_component(Event event | ||||
NAMES event | NAMES event | ||||
HINTS "${BREW_HINT}" | HINTS "${BREW_HINT}" | ||||
INCLUDE_DIRS ${Event_INCLUDE_DIRS} | INCLUDE_DIRS ${Event_INCLUDE_DIRS} | ||||
PATHS ${PC_Event_LIBRARY_DIRS} | PATHS ${PC_Event_LIBRARY_DIRS} | ||||
) | ) | ||||
set(_Event_WINDOWS_LIBRARIES "$<$<PLATFORM_ID:Windows>:ws2_32;shell32;advapi32>") | |||||
set_property(TARGET Event::event | |||||
PROPERTY INTERFACE_LINK_LIBRARIES ${_Event_WINDOWS_LIBRARIES} | |||||
) | |||||
list(APPEND Event_LIBRARIES ${_Event_WINDOWS_LIBRARIES}) | |||||
pkg_check_modules(PC_Event_pthreads QUIET event_pthreads libevent_pthreads) | pkg_check_modules(PC_Event_pthreads QUIET event_pthreads libevent_pthreads) | ||||
find_component(Event pthreads | find_component(Event pthreads | ||||
NAMES event_pthreads | NAMES event_pthreads | ||||
INCLUDE_DIRS ${Event_INCLUDE_DIRS} | INCLUDE_DIRS ${Event_INCLUDE_DIRS} | ||||
PATHS ${PC_Event_pthreads_LIBRARY_DIRS} | PATHS ${PC_Event_pthreads_LIBRARY_DIRS} | ||||
) | ) | ||||
endif() | endif() | ||||
Show All 29 Lines |