mirror of
https://github.com/pulseaudio/pulseaudio.git
synced 2024-11-23 01:47:17 +08:00
ce546b22eb
I'd rather not have to do this, as I don't really see the point in duplicating what is done in pkgconfig, but this is likely the easiest way to avoid nasty hacks.
12 lines
489 B
CMake
12 lines
489 B
CMake
set(PACKAGE_VERSION @PA_MAJOR@.@PA_MINOR@)
|
|
|
|
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
|
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
|
|
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
|
|
set(PACKAGE_VERSION_EXACT TRUE)
|
|
endif( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
|
|
endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
|
|
|