test-export: adjust libevent version

This commit is contained in:
Azat Khuzhin 2020-07-03 01:03:51 +03:00
parent 813cc73925
commit 1acaa9a2cc

View File

@ -7,7 +7,7 @@ project(verify)
if(NOT ${EVENT__CODE_COMPONENT} STREQUAL "") if(NOT ${EVENT__CODE_COMPONENT} STREQUAL "")
string(TOUPPER ${EVENT__CODE_COMPONENT} _UPPER_COMPONENT) string(TOUPPER ${EVENT__CODE_COMPONENT} _UPPER_COMPONENT)
endif() endif()
find_package(Libevent 2.2.0 REQUIRED COMPONENTS ${EVENT__LINK_COMPONENT}) find_package(Libevent 2.1.0 REQUIRED COMPONENTS ${EVENT__LINK_COMPONENT})
add_definitions(-DEVENT_EXPORT_TEST_COMPONENT_${_UPPER_COMPONENT}) add_definitions(-DEVENT_EXPORT_TEST_COMPONENT_${_UPPER_COMPONENT})
add_executable(test-export test-export.c) add_executable(test-export test-export.c)
target_link_libraries(test-export ${LIBEVENT_LIBRARIES}) target_link_libraries(test-export ${LIBEVENT_LIBRARIES})