mirror of
https://github.com/libevent/libevent.git
synced 2025-01-20 05:02:55 +08:00
f3446ed5fb
Make it easier for other projects to do find_package by creating config files both in the build and install tree.
12 lines
386 B
CMake
12 lines
386 B
CMake
set(PACKAGE_VERSION "@EVENT_PACKAGE_VERSION@")
|
|
|
|
# Check whether the requested PACKAGE_FIND_VERSION is compatible
|
|
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
|
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
else()
|
|
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
|
|
set(PACKAGE_VERSION_EXACT TRUE)
|
|
endif()
|
|
endif()
|