-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.cmake.in
30 lines (24 loc) · 1 KB
/
config.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
set(_supported_components utilities iterators containers logger statemachine)
if (${UNIX})
list(APPEND _supported_components concurrency networking)
endif ()
list(LENGTH ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS _required_components)
if (NOT ${_required_components})
set(${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS ${_supported_components})
endif ()
foreach(_comp ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
if (NOT _comp IN_LIST _supported_components)
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND False)
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-${_comp}-targets.cmake")
endforeach()
list(APPEND _libevent_dependent_components networking)
foreach(_comp ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
if (_comp IN_LIST _libevent_dependent_components)
find_dependency(Libevent)
break()
endif()
endforeach()