parent
60e5d44b4c
commit
10b7b47fed
@ -1,3 +1,4 @@
|
||||
/PackageKit-Qt-0.8.6.tar.gz
|
||||
/PackageKit-Qt-0.8.7.tar.xz
|
||||
/PackageKit-Qt-0.8.8.tar.xz
|
||||
/QPACKAGEKIT_0_8_9.tar.gz
|
||||
|
@ -0,0 +1,32 @@
|
||||
diff --git a/src/modules/CMakeLists.txt b/src/modules/CMakeLists.txt
|
||||
index e643a71..0b84840 100755
|
||||
--- a/src/modules/CMakeLists.txt
|
||||
+++ b/src/modules/CMakeLists.txt
|
||||
@@ -4,7 +4,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${LIBNAME}-config.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${LIBNAME}-config.cmake
|
||||
@ONLY
|
||||
)
|
||||
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/packagekit-qt-config-version.cmake.in
|
||||
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${LIBNAME}-config-version.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${LIBNAME}-config-version.cmake
|
||||
@ONLY
|
||||
)
|
||||
diff --git a/src/modules/packagekit-qt2-config-version.cmake.in b/src/modules/packagekit-qt2-config-version.cmake.in
|
||||
new file mode 100644
|
||||
index 0000000..860eb70
|
||||
--- /dev/null
|
||||
+++ b/src/modules/packagekit-qt2-config-version.cmake.in
|
||||
@@ -0,0 +1,13 @@
|
||||
+SET(PACKAGE_VERSION @VERSION@)
|
||||
+IF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
|
||||
+ SET(PACKAGE_VERSION_EXACT "true")
|
||||
+ENDIF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
|
||||
+IF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
|
||||
+ SET(PACKAGE_VERSION_COMPATIBLE "true")
|
||||
+ELSE (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
|
||||
+ SET(PACKAGE_VERSION_UNSUITABLE "true")
|
||||
+ENDIF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
|
||||
+IF (PACKAGE_VERSION_UNSUITABLE)
|
||||
+ MESSAGE("VERSION CHECK FAILED FOR ${PACKAGE_FIND_NAME}. WANTED ${PACKAGE_FIND_VERSION}, HAVE ${PACKAGE_VERSION}")
|
||||
+ENDIF(PACKAGE_VERSION_UNSUITABLE)
|
||||
+
|
Loading…
Reference in new issue